[Unit] Description=Auto-SSL 证书管理服务 After=network.target Wants=network.target [Service] Type=simple User=root WorkingDirectory={{DEPLOY_DIR}}/backend Environment="PORT=9090" Environment="ACME_PORT=8082" Environment="GIN_MODE=release" ExecStart={{DEPLOY_DIR}}/backend/autossl Restart=always RestartSec=3 StandardOutput=journal+console StandardError=journal+console SyslogIdentifier=autossl [Install] WantedBy=multi-user.target