20 lines
487 B
Desktop File
20 lines
487 B
Desktop File
[Unit]
|
|
Description=Rust Auth Service for Port %I
|
|
After=network.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/local/bin/rust-auth
|
|
Environment="RUST_LOG=debug"
|
|
# Cookie 所允许的域名
|
|
# Environment="DOMAIN=.aaronhu.cn"
|
|
# 部署在哪个子路由上?
|
|
Environment="HOME_URL=/aaron"
|
|
Environment="RP_ORIGIN=https://sso.aaronhu.cn"
|
|
Environment="RP_NAME=Huyunfan Auth"
|
|
Environment="RP_ID=aaronhu.cn"
|
|
Environment="DATABASE_URL=/var/auth/auth.db"
|
|
Environment="PORT=%I"
|
|
|
|
[Install]
|
|
WantedBy=default.target
|