2016-04-29 16:32:48 +02:00
|
|
|
[Unit]
|
2017-07-19 12:49:06 +02:00
|
|
|
Description=Rocket.Chat
|
2016-04-29 16:32:48 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2017-07-19 12:49:06 +02:00
|
|
|
Type=simple
|
|
|
|
WorkingDirectory=/var/www/rocketchat
|
|
|
|
User=www-data
|
2016-04-29 16:32:48 +02:00
|
|
|
Group=www-data
|
2017-07-19 12:49:06 +02:00
|
|
|
ExecStart=/usr/local/bin/node main.js
|
|
|
|
Restart=always
|
|
|
|
SyslogIdentifier=Rocket.Chat
|
|
|
|
Environment="BIND_IP=127.0.0.1"
|
|
|
|
Environment="ROOT_URL=https://#ROOTURL##LOCATION#"
|
|
|
|
Environment="PORT=3000"
|
2016-04-29 16:32:48 +02:00
|
|
|
Environment="MONGO_URL=mongodb://localhost:27017/rocketchat"
|
|
|
|
|
|
|
|
[Install]
|
2017-07-19 12:49:06 +02:00
|
|
|
WantedBy=multi-user.target
|