refactor(upgrade): Adapt upgrade script for aiohttp auth server

This commit is contained in:
Whispering Wind
2025-08-23 23:08:29 +03:30
committed by GitHub
parent eac9cfde75
commit 80b7af2d61
2 changed files with 32 additions and 22 deletions

View File

@ -49,12 +49,13 @@ After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/etc/hysteria/core/scripts/hysteria2
WorkingDirectory=/etc/hysteria
ExecStart=/etc/hysteria/hysteria2_venv/bin/python3 /etc/hysteria/core/scripts/hysteria2/auth_server.py
Restart=always
RestartSec=3
Environment="USERS_FILE=/etc/hysteria/users.json"
Environment="CONFIG_FILE=/etc/hysteria/config.json"
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=hysteria-Auth
[Install]
WantedBy=multi-user.target