2021-07-10 19:40:17 +02:00
|
|
|
[Unit]
|
|
|
|
Description=The Rocket.Chat server
|
2021-11-18 17:26:35 +01:00
|
|
|
Wants=__MONGODB_SERVICENAME__.service
|
2021-07-10 19:40:17 +02:00
|
|
|
After=network.target remote-fs.target nss-lookup.target nginx.service __MONGODB_SERVICENAME__.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=__APP__
|
2021-11-18 17:26:35 +01:00
|
|
|
Group=__APP__
|
2021-07-10 19:40:17 +02:00
|
|
|
Environment="NODE_ENV=production"
|
2022-06-13 09:13:36 +02:00
|
|
|
WorkingDirectory=__FINALPATH__/
|
|
|
|
Environment="__YNH_NODE_LOAD_PATH__"
|
2021-11-18 17:26:35 +01:00
|
|
|
ExecStart=__YNH_NODE__ __FINALPATH__/main.js
|
2021-07-10 19:40:17 +02:00
|
|
|
SyslogIdentifier=__APP__
|
2021-11-18 17:26:35 +01:00
|
|
|
Environment=MONGO_URL=mongodb://localhost:27017/__APP__?replicaSet=rs01
|
|
|
|
Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01
|
2021-07-10 19:40:17 +02:00
|
|
|
Environment=ROOT_URL=https://__DOMAIN____PATH__
|
|
|
|
Environment=PORT=__PORT__
|
2021-11-19 21:14:19 +01:00
|
|
|
Environment=ADMIN_USERNAME=__ADMIN__
|
|
|
|
Environment=ADMIN_PASS=__PASSWORD__
|
|
|
|
Environment=ADMIN_EMAIL=__EMAIL__
|
|
|
|
Environment=OVERWRITE_SETTING_Show_Setup_Wizard=completed
|
2021-07-10 19:40:17 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|