1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00
distbin_ynh/conf/systemd.service
yalh76 9467260b76 remove not needed:
Environment="NODE_TLS_REJECT_UNAUTHORIZED=0"
2019-02-07 23:44:14 +01:00

18 lines
527 B
Desktop File

[Unit]
Description=Distbin Service
After=network.target
[Service]
Type=simple
User=__APP__
Group=__APP__
Environment="PATH=__NODEJS_PATH__"
Environment="PORT=__PORT__"
Environment="DB_DIR=__FINALPATH__/db"
Environment="EXTERNAL_URL=https://__DOMAIN_URI__"
Environment="NODE_ENV=production"
WorkingDirectory=__FINALPATH__/
ExecStart=/bin/sh -c '__FINALPATH__/node_modules/.bin/ts-node --project __FINALPATH__/tsconfig.json __FINALPATH__/bin/server.ts >> /var/log/__APP__/__APP__.log 2>&1'
[Install]
WantedBy=multi-user.target