Initial commit

This commit is contained in:
Julian Rother 2025-11-09 23:19:13 +01:00
commit 11c3655907
Signed by: julian
GPG key ID: C19B924C0CD13341
6 changed files with 200 additions and 0 deletions

View file

@ -0,0 +1,15 @@
After=network-online.target
Wants=network-online.target
[Service]
Type=notify
User=captive-portal
Group=captive-portal
AmbientCapabilities=CAP_NET_ADMIN
ExecStartPre=!mkdir -p /run/captive-portal
ExecStartPre=!chown captive-portal:www-data /run/captive-portal
ExecStartPre=!chmod 0750 /run/captive-portal
WorkingDirectory=/usr/local/lib/captive-portal/
ExecStart=/bin/gunicorn --workers 2 --bind unix:/run/captive-portal/socket captive_portal:app