mirror of
https://github.com/YunoHost-Apps/satdress_ynh.git
synced 2024-09-03 20:16:27 +02:00
initial
This commit is contained in:
parent
b257b19e93
commit
18805c7e2d
1 changed files with 10 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Small description of the service
|
Description=Federated Lightning addresses server.
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -7,13 +7,19 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
WorkingDirectory=__FINALPATH__/
|
||||||
ExecStart=__FINALPATH__/script
|
ExecStart=__FINALPATH__/bin/satdress
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=10
|
||||||
StandardOutput=append:/var/log/__APP__/__APP__.log
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||||
StandardError=inherit
|
StandardError=inherit
|
||||||
|
Environment="PORT=__PORT__"
|
||||||
|
Environment="DOMAIN=__DOMAIN__"
|
||||||
|
Environment="SECRET=__RANDOMSTRING__"
|
||||||
|
Environment="SITE_OWNER_NAME=__SITEOWNER__"
|
||||||
|
Enviornment="SITE_OWNER_URL=__SITEOWNERURL"
|
||||||
|
Enviornment="SITE_NAME=__SITENAME__"
|
||||||
|
|
||||||
# Sandboxing options to harden security
|
# Sandboxing options to harden security
|
||||||
# Depending on specificities of your service/app, you may need to tweak these
|
|
||||||
# .. but this should be a good baseline
|
|
||||||
# Details for these options: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
|
# Details for these options: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
PrivateTmp=yes
|
PrivateTmp=yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue