fifth-domain/server-tools/ai-discovery-gateway/guanghu-jd-ai-discovery-tunnel.service

20 lines
542 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=Guanghu BS-GZ-006 to domestic AI discovery tunnel
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/ssh -NT -F /etc/guanghu/jd-ai-discovery-tunnel-ssh-config jd-ai-discovery-target
Restart=always
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=read-only
ProtectSystem=strict
ReadOnlyPaths=/etc/guanghu/jd-ai-discovery-tunnel-ssh-config /etc/guanghu/secrets/ssh/bs_gz_006_to_jd_ai_discovery /root/.ssh/known_hosts
[Install]
WantedBy=multi-user.target