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-29 23:42:05 +02:00
parent 930a96e2f0
commit 363f9771be
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 48 additions and 9 deletions

43
conf/mongod.conf Normal file
View file

@ -0,0 +1,43 @@
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
engine: wiredTiger/
# mmapv1:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
# how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo
#security:
#operationProfiling:
replSetName: rs01/
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp:

View file

@ -13,10 +13,7 @@ StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
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__
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

@ -137,12 +137,11 @@ ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --targ
ynh_add_systemd_config
# #=================================================
# # MODIFY A CONFIG FILE
# #=================================================
#=================================================
# MODIFY A CONFIG FILE
#=================================================
ynh_replace_string --match_string=" engine:/" --replace_string="engine: wiredTiger/" --target_file="/etc/mongod.conf"
ynh_replace_string --match_string="replication:/replication:\n" --replace_string="replSetName: rs01/" --target_file="/etc/mongod.conf"
ynh_add_config --template="../conf/mongod.conf" --destination="/etc/mongod.conf"
#=================================================
# INTEGRATE SERVICE IN YUNOHOST