[Unit] Description=Schon Web Server (Uvicorn) Documentation=https://gitlab.com/wiseless.xyz/schon After=network.target postgresql.service redis.service elasticsearch.service Wants=postgresql.service redis.service [Service] Type=simple User=schon Group=schon WorkingDirectory=/opt/schon EnvironmentFile=/opt/schon/.env ExecStart=/opt/schon/.venv/bin/uvicorn \ --host 127.0.0.1 \ --port 8000 \ --workers 4 \ --proxy-headers \ --forwarded-allow-ips='*' \ --ws-ping-interval 20 \ --ws-ping-timeout 20 \ schon.asgi:application Restart=always RestartSec=5 StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target