add rundev example and systemd Unit file

This commit is contained in:
Hugh Rundle 2023-01-11 13:34:06 +11:00
parent 91cb731433
commit 153b93d1cd
2 changed files with 18 additions and 0 deletions

4
rundev_example Normal file
View file

@ -0,0 +1,4 @@
SOYUZ_PORT=1966 \
GEMINI_PATH='~/dev/gemini' \
SOYUZ_SESSION_SECRET='keyboard cat' \
node server.js

14
soyuz-web.service Normal file
View file

@ -0,0 +1,14 @@
[Service]
Type=simple
ExecStart=/usr/bin/node server.js
Restart=always
RestartSec=15
TimeoutSec=15
KillMode=process
User=gemini
WorkingDirectory=/home/gemini
Environment="SOYUZ_PORT=1966"
Environment="GEMINI_PATH=/srv/gemini"
Environment="SOYUZ_SESSION_SECRET=change_me"
[Install]
WantedBy=multi-user.target