28 lines
525 B
SYSTEMD
28 lines
525 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Cloudflare Tunnel for ml110-01 Proxmox Host
|
||
|
|
After=network.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
User=root
|
||
|
|
ExecStart=/usr/local/bin/cloudflared tunnel --config /etc/cloudflared/tunnel-ml110.yml run
|
||
|
|
Restart=on-failure
|
||
|
|
RestartSec=5s
|
||
|
|
StandardOutput=journal
|
||
|
|
StandardError=journal
|
||
|
|
SyslogIdentifier=cloudflared-ml110
|
||
|
|
|
||
|
|
# Security settings
|
||
|
|
NoNewPrivileges=true
|
||
|
|
PrivateTmp=true
|
||
|
|
ProtectSystem=strict
|
||
|
|
ProtectHome=true
|
||
|
|
ReadWritePaths=/etc/cloudflared
|
||
|
|
|
||
|
|
# Resource limits
|
||
|
|
LimitNOFILE=65536
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|
||
|
|
|