682b538e16
We add a rudimentary deployment setup based on gunicorn and systemd.
28 lines
568 B
Desktop File
28 lines
568 B
Desktop File
[Unit]
|
|
After=network.target
|
|
WantedBy=default.target
|
|
|
|
[Service]
|
|
Environment="PORT=6666"
|
|
# /etc/ftth-elig/conf.ini
|
|
ConfigurationDirectory=ftth-elig
|
|
WorkingDirectory="/srv/www/Axione-FTTH-Test/"
|
|
ExecStart="./startGunicornService"
|
|
User=ftthTest
|
|
Group=ftthTest
|
|
Restart=on-failure
|
|
RestartSec=30
|
|
|
|
# Sandboxing
|
|
ProtectSystem=strict
|
|
ProtectHome=tmpfs
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
PrivateIPC=true
|
|
ProtectClock=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
RestrictAddressFamilies=AF_INET
|
|
RestrictRealtime=true
|