5 changed files with 53 additions and 2 deletions
@ -0,0 +1,28 @@
|
||||
[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 |
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash |
||||
|
||||
set -euo pipefail |
||||
|
||||
poetry run gunicorn -b "localhost:${PORT}" --timeout 120 'webapp.app' |
Loading…
Reference in new issue