Download deploy/sub2api.service from cjovs/su2a: direct link, hf CLI and curl.
- Browser
- Download file 752 Bytes
-
https://huggingface.co/spaces/cjovs/su2a/resolve/main/deploy/sub2api.service
- Command line
-
hf download hf://spaces/cjovs/su2a/deploy/sub2api.service
-
curl -L -o sub2api.service https://huggingface.co/spaces/cjovs/su2a/resolve/main/deploy/sub2api.service
752 Bytes
| [Unit] | |
| Description=Sub2API - AI API Gateway Platform | |
| Documentation=https://github.com/Wei-Shaw/sub2api | |
| After=network.target postgresql.service redis.service | |
| Wants=postgresql.service redis.service | |
| [Service] | |
| Type=simple | |
| User=sub2api | |
| Group=sub2api | |
| WorkingDirectory=/opt/sub2api | |
| ExecStart=/opt/sub2api/sub2api | |
| Restart=always | |
| RestartSec=5 | |
| StandardOutput=journal | |
| StandardError=journal | |
| SyslogIdentifier=sub2api | |
| # Security hardening | |
| NoNewPrivileges=true | |
| ProtectSystem=strict | |
| ProtectHome=true | |
| PrivateTmp=true | |
| ReadWritePaths=/opt/sub2api | |
| # Environment - Server configuration | |
| # Modify these values to change listen address and port | |
| Environment=GIN_MODE=release | |
| Environment=SERVER_HOST=0.0.0.0 | |
| Environment=SERVER_PORT=8080 | |
| [Install] | |
| WantedBy=multi-user.target | |