Import ECS deployed relay source and historical patches (2026-10-27)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
{
|
||||
admin off
|
||||
auto_https off
|
||||
}
|
||||
:8443 {
|
||||
tls /tls/server.pem /tls/server.key
|
||||
# No access log: OAuth query strings and credentials must never be logged.
|
||||
@private path /admin/* /internal/* /ready
|
||||
respond @private 404
|
||||
handle /device/ws {
|
||||
reverse_proxy router:8000
|
||||
}
|
||||
handle {
|
||||
reverse_proxy connector:8000
|
||||
}
|
||||
header {
|
||||
Strict-Transport-Security "max-age=31536000"
|
||||
X-Content-Type-Options nosniff
|
||||
Referrer-Policy no-referrer
|
||||
-Server
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=Hainuo relay %i
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=hainuo
|
||||
Group=hainuo
|
||||
WorkingDirectory=/opt/hainuo-relay
|
||||
EnvironmentFile=/etc/hainuo-relay/%i.env
|
||||
ExecStart=/opt/hainuo-relay/.venv/bin/python -m relay.cli serve %i --host 127.0.0.1 --port 8000
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
UMask=0077
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ReadWritePaths=/var/lib/hainuo-relay
|
||||
LimitCORE=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user