mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Updating service for domain
This commit is contained in:
parent
1f2b2e784e
commit
a4c9e2386b
2 changed files with 4 additions and 1 deletions
|
@ -11,7 +11,7 @@ ExecStart=/usr/local/bin/node main.js
|
|||
Restart=always
|
||||
SyslogIdentifier=Rocket.Chat
|
||||
Environment="BIND_IP=127.0.0.1"
|
||||
Environment="ROOT_URL=https://rc.dev.weho.st"
|
||||
Environment="ROOT_URL=CHANGEMETOROOTURL"
|
||||
Environment="PORT=3000"
|
||||
Environment="MONGO_URL=mongodb://localhost:27017/rocketchat"
|
||||
|
||||
|
|
|
@ -32,6 +32,9 @@ sudo n 0.10.40
|
|||
|
||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf*
|
||||
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf*
|
||||
sed -i "s@CHANGEMETOROOTURL@$domain\/$path/@g" ../conf/Rocketchat.service
|
||||
|
||||
|
||||
if [ "$path" = "" ];
|
||||
then
|
||||
sudo cp ../conf/nginx.conf-nosub /etc/nginx/conf.d/$domain.d/rocketchat.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue