mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Fix
This commit is contained in:
parent
930a96e2f0
commit
363f9771be
3 changed files with 48 additions and 9 deletions
43
conf/mongod.conf
Normal file
43
conf/mongod.conf
Normal 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:
|
|
@ -13,10 +13,7 @@ StandardOutput=syslog
|
||||||
StandardError=syslog
|
StandardError=syslog
|
||||||
SyslogIdentifier=rocketchat
|
SyslogIdentifier=rocketchat
|
||||||
|
|
||||||
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01
|
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__
|
||||||
MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01
|
|
||||||
ROOT_URL=http://__DOMAIN__:__PORT__
|
|
||||||
PORT=__PORT__
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -137,12 +137,11 @@ ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --targ
|
||||||
|
|
||||||
ynh_add_systemd_config
|
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_add_config --template="../conf/mongod.conf" --destination="/etc/mongod.conf"
|
||||||
ynh_replace_string --match_string="replication:/replication:\n" --replace_string="replSetName: rs01/" --target_file="/etc/mongod.conf"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
|
|
Loading…
Add table
Reference in a new issue