[Unit]
Description=Forma N8 public website
After=network.target postgresql.service
Wants=postgresql.service

[Service]
Type=simple
User=forma-n8
Group=forma-n8
WorkingDirectory=/opt/forma-n8
EnvironmentFile=/etc/forma-n8.env
Environment=PYTHONPATH=/opt/forma-n8/src
ExecStart=/opt/forma-n8/.venv/bin/uvicorn forma_n8_site.app:app --host 127.0.0.1 --port 8090 --proxy-headers
Restart=always
RestartSec=3
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/forma-n8

[Install]
WantedBy=multi-user.target
