mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 11:47:01 +05:30
Move all services into their own domains
I've already seen the cons of running as root
This commit is contained in:
parent
5d37721607
commit
7da5de3c64
3 changed files with 6 additions and 6 deletions
|
@ -4,8 +4,8 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/etc/caddy/core
|
||||
User=msfjarvis
|
||||
WorkingDirectory=/home/msfjarvis
|
||||
ExecStart=/usr/bin/node /etc/caddy/core/server.js -p 8080 -a : -w ~/
|
||||
Restart=on-abort
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
User=caddy
|
||||
WorkingDirectory=/etc/caddy
|
||||
ExecStart=/usr/local/bin/caddy -conf /etc/caddy/Caddyfile
|
||||
Restart=on-abort
|
||||
|
|
|
@ -4,9 +4,9 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/root/jarvis-ci-bot
|
||||
ExecStart=/root/jarvis-ci-bot/build.py
|
||||
User=bot
|
||||
WorkingDirectory=/home/bot/jarvis-ci-bot
|
||||
ExecStart=/home/bot/jarvis-ci-bot/build.py
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue