ยง2024-10-19

# mongodb connection string for the main database
mongo="mongodb://127.0.0.1:27017/wildduck"
# mongo = "mongodb://siteRootAdmin:b23258585@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017/wildduck?authSource=admin&replicaSet=ys20220318"

# 'mongodb://siteRootAdmin:b23258585@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017/admin?replicaSet=ys20220318'
# redis connection string to connect to a single master (see below for Sentinel example)
#redis="redis://127.0.0.1:6379/3"

# WildDuck allows using different kind of data in different databases
# If you do not provide a database config value, then main database connection
# is used for everything
# You can either use a database name (uses shared connection) or a configutaion
# url (creates a separate connection) for each databases

# Optional database name or connection url for GridFS if you do not want to
# use the main db for storing attachments. Useful if you want
# to use a different mount folder or storage engine
#gridfs="wildduck"

# Optional database name or connection url for users collection if you do not want to
# use the main db for storing user/address data. Useful if you want
# to use a different mount folder or storage engine
#users="wildduck"

# Optional database name or connection url for ZoneMTA queue database. This is
# used to push outbound emails to the sending queue
sender="zone-mta"

#queued="mail"

[redis]
host="127.0.0.1"
port=6379
db=3

## Connect to Redis Sentinel instead of single master
# [redis]
# name="mymaster"
# password=""
# db=3
# [[redis.sentinels]]
#   host="54.36.85.113"
#   port=26379
# [[redis.sentinels]]
#   host="54.36.85.114"
#   port=26379
# [[redis.sentinels]]
#   host="54.36.85.115"
#   port=26379

[Unit]
Description=The Rocket.Chat 6.12.0  Drangonfly28 server Using YS replicaSet=ys20220318
After=network.target remote-fs.target nss-lookup.target nginx.service mongod.service
[Service]
ExecStart=/home/alexlai/.local/share/fnm/node-versions/v14.21.3/installation/bin/node /opt/Rocket.Chat-6.13.0/main.js
# ExecStart=/bin/bash -c 'printenv; /home/alexlai/.local/share/fnm/node-versions/v14.21.3/installation/bin/node /opt/Rocket.Chat.Dragonfly28/main.js'
# ExecStart=/bin/bash -c 'printenv; /home/alexlai/.local/share/fnm/node-versions/v14.21.3/installation/bin/node /opt/Rocket.Chat.Dragonfly28.old/main.js'
#  >> /opt/Rocket.Chat.Dragonfly28/RocketchatDragonfly28.log 2>&1'
# StandardOutput=syslog # By default, systemd sends output to the journal, so you don't need to specify these unless you have specific requirements. 
# StandardError=syslog
SyslogIdentifier=RocketChatDragonfly28New
User=rocketchat

# Environment="MONGO_URL=mongodb://siteRootAdmin:b23258585@x8664Arch.yushei.com.tw:27017,n2Bookworm.yushei.com.tw:27017,n2Jammy.yushei.com.tw:27017/Dragonfly28-01?replicaSet=odroid01&authSource=admin"
# Environment="MONGO_OPLOG_URL=mongodb://siteRootAdmin:b23258585@x8664Arch.yushei.com.tw:27017,n2Bookworm.yushei.com.tw:27017,n2Jammy.yushei.com.tw:27017/Dragonfly28-01?replicaSet=odroid01&authSource=admin"

Environment="MONGO_URL=mongodb://siteRootAdmin:b23258585@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017/Dragonfly28?replicaSet=ys20220318&authSource=admin"
Environment="MONGO_OPLOG_URL=mongodb://siteRootAdmin:b23258585@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017/Dragonfly28?replicaSet=ys20220318&authSource=admin"

Environment="ROOT_URL=https://munetaka.me:43883/"
Environment="PORT=43883"
# when dabase a new, then an admin will be cretaed according to ADMIN_USERNAME and ADMIN_PASS
Environment="ADMIN_USERNAME=DragonFly28Admin"
Environment="ADMIN_PASS=DragonFly28Admin#1765"
Environment="ADMIN_EMAIL=rai.sousuke@mac.com"
Environment="MAIL_URL=smtp://alexlai:alex1765@mail.h2Jammy.yushei.net:25/"
[Install]
WantedBy=multi-user.target