add rundev example and systemd Unit file
This commit is contained in:
parent
91cb731433
commit
153b93d1cd
4
rundev_example
Normal file
4
rundev_example
Normal 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
14
soyuz-web.service
Normal 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
|
Loading…
Reference in a new issue