Add initial project structure and configuration files

This commit is contained in:
Joakim Hellsén 2026-03-22 20:02:16 +01:00
commit 988d131c49
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
13 changed files with 688 additions and 20 deletions

View file

@ -0,0 +1,32 @@
[Unit]
Description=Panso
Requires=panso.socket
After=network.target
[Service]
Type=simple
User=panso
Group=panso
WorkingDirectory=/home/panso/panso
EnvironmentFile=/home/panso/panso/.env
RuntimeDirectory=panso
UMask=0077
ExecStart=/usr/bin/uv run gunicorn config.wsgi:application --bind unix:/run/panso/panso.sock --workers 13 --name panso --max-requests-jitter 50 --max-requests 1200
ExecReload=/bin/kill -s HUP $MAINPID
NoNewPrivileges=yes
PrivateTmp=yes
ProtectSystem=full
ProtectHome=no
ReadWritePaths=/home/panso/panso /run/panso
PrivateDevices=yes
CapabilityBoundingSet=
AmbientCapabilities=
RestrictRealtime=yes
LockPersonality=yes
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,11 @@
[Unit]
Description=Panso Socket
[Socket]
ListenStream=/run/panso/panso.sock
SocketUser=panso
SocketGroup=panso
SocketMode=0660
[Install]
WantedBy=sockets.target