Prep for octopi

This commit is contained in:
paukstelis
2021-03-06 11:22:40 -05:00
parent 47db5cdbfc
commit 74ebb57452
3 changed files with 51 additions and 19 deletions

View File

@@ -4,12 +4,11 @@ After=network.online.target
Wants=network.online.target
[Service]
Environment="HOST=127.0.0.1"
Environment="PORT=NEWPORT"
Environment="BASEDIR=OCTOCONFIG/.NEWINSTANCE"
Environment="CONFIGFILE=OCTOCONFIG/.NEWINSTANCE/config.yaml"
User=OCTOUSER
ExecStart=OCTOPATH serve --config=${CONFIGFILE} --basedir=${BASEDIR} --host=${HOST} --port=${PORT}
ExecStart=OCTOPATH serve --config=${CONFIGFILE} --basedir=${BASEDIR} --port=${PORT}
[Install]
WantedBy=multi-user.target