Files
server-ops/auth_proxy/auth_proxy.service
fxy 858a94811c auth: add auth_proxy v2 with cookie session auth
- Add auth_proxy/auth_proxy.py: Python HTTP server, bcrypt password, HMAC-SHA256 token
- Add auth_proxy/auth_proxy.service: systemd service on port 9002
- Update CHANGELOG.md: v1.1.0 with auth_proxy section
- Security: basicauth replaced by session cookie (7 days, HttpOnly, SameSite=Lax)
- Cross-subdomain cookie via Domain=.xybkwd.top
2026-06-15 19:31:37 +08:00

15 lines
282 B
Desktop File

[Unit]
Description=Auch proxy service for Caddy (cookie-based session auth)
After=network.target
[Service]
Type=simple
User=ubuntu
WorkingDirectory=/home/ubuntu
ExecStart=/usr/bin/python3 /home/ubuntu/auth_proxy.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target