2021-06-20 23:33:46 +02:00
|
|
|
[Unit]
|
|
|
|
Description=HedgeDoc: collaborative Markdown notes frontend
|
|
|
|
Documentation=https://github.com/hedgedoc/hedgedoc
|
|
|
|
After=network.target postgresql.service __APP___backend.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2024-05-28 23:31:51 +02:00
|
|
|
WorkingDirectory=__INSTALL_DIR__/frontend
|
|
|
|
Environment="__YNH_NODE_LOAD_PATH__"
|
2021-06-20 23:33:46 +02:00
|
|
|
Environment="NODE_ENV=production"
|
|
|
|
Environment="PORT=__PORT_FRONTEND__"
|
|
|
|
Environment="REACT_APP_BACKEND_BASE_URL=http://localhost:__PORT_BACKEND__/"
|
2024-05-28 23:31:51 +02:00
|
|
|
ExecStart=__INSTALL_DIR__/frontend/node_modules/.bin/cross-env PORT=__PORT_FRONTEND__ REACT_APP_BACKEND_BASE_URL=http://localhost:__PORT_BACKEND__/ __INSTALL_DIR__/frontend/node_modules/.bin/craco start
|
2021-06-20 23:33:46 +02:00
|
|
|
Restart=always
|
|
|
|
PrivateTmp=true
|
|
|
|
PrivateDevices=true
|
|
|
|
|
|
|
|
ProtectControlGroups=true
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectSystem=full
|
|
|
|
RestrictSUIDSGID=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|