ยง2024-12-07
- RocketChatDragonfly28.service
[Unit]
Description=The Rocket.Chat 7.0.0 Drangonfly28 server Using YS replicaSet=ys20241107. mongodb v8.0.3
After=network.target remote-fs.target nss-lookup.target nginx.service mongod.service
[Service]
ExecStart= /home/alexlai/.local/share/fnm/node-versions/v20.18.0/installation/bin/node /opt/Rocket.Chat-7.1.0/main.js
# 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="MONGO_URL=mongodb://siteRootAdmin:b23258585@ysmongov701.yushei.com.tw:27017,ysmongov702.yushei.com.tw:27017,ysmongov703.yushei.com.tw:27017/Dragonfly28?replicaSet=ys2024v2&authSource=admin"
# Environment="MONGO_OPLOG_URL=mongodb://siteRootAdmin:b23258585@ysmongov701.yushei.com.tw:27017,ysmongov702.yushei.com.tw:27017,ysmongov703.yushei.com.tw:27017/Dragonfly28?replicaSet=ys2024v2&authSource=admin"
Environment="MONGO_URL=mongodb://siteRootAdmin:b23258585@ysmongov801.yushei.com.tw:27017,ysmongov802.yushei.com.tw:27017,ysmongov803.yushei.com.tw:27017/Dragonfly28V803?replicaSet=ys20241107&authSource=admin"
Environment="MONGO_OPLOG_URL=mongodb://siteRootAdmin:b23258585@ysmongov801.yushei.com.tw:27017,ysmongov802.yushei.com.tw:27017,ysmongov803.yushei.com.tw:27017/Dragonfly28V803?replicaSet=ys20241107&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@yushei.net:25/"
[Install]
WantedBy=multi-user.target