1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00
This commit is contained in:
ericgaspar 2021-06-30 10:13:41 +02:00
parent af6bcfd51b
commit 57b8f40705
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 6 additions and 10 deletions

View file

@ -32,7 +32,8 @@ processManagement:
#operationProfiling:
replSetName: rs01
replication:
replSetName: "rs01"
#sharding:

View file

@ -8,12 +8,10 @@ WorkingDirectory=__FINALPATH__
Environment="PATH=__ENV_PATH__"
Environment="NODE_ENV=production"
ExecStart=__YNH_NODE__ __FINALPATH__/main.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
Environment=MONGO_URL=mongodb://127.0.0.1:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local?replicaSet=rs01 ROOT_URL=http://__DOMAIN__:__PORT__ PORT=__PORT__
SyslogIdentifier=__APP__
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://__DOMAIN__:__PORT__ PORT=__PORT__
[Install]
WantedBy=multi-user.target

View file

@ -4,9 +4,6 @@
# COMMON VARIABLES
#=================================================
# dependencies used by the app
#pkg_dependencies="apt-transport-https build-essential gzip curl graphicsmagick" dirmngr
nodejs_version=12
# dependencies used by the app

View file

@ -125,8 +125,8 @@ pushd $final_path/programs/server
npm install -g inherits n
ynh_exec_as $app env $ynh_node_load_PATH npm install
export MONGO_URL='mongodb://$db_user:$db_pwdd@host:27017/$db_name'
export ROOT_URL='http://$domain'
#export MONGO_URL='mongodb://$db_user:$db_pwdd@host:27017/$db_name'
#export ROOT_URL='http://$domain'
#export MAIL_URL='smtp://user:password@mailhost:port/'
popd