summarylogtreecommitdiffstats
path: root/frps.service
blob: bf2d84d2b048ac3a6af67fefcae4f30c9e5fe236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Frp Server Service
After=network.target
Wants=network.target

[Service]
Type=exec
LoadCredential=config:/etc/frp/frps.ini
LoadCredential=config_toml:/etc/frp/frps.toml
DynamicUser=yes
Restart=on-failure
RestartSec=5s
ExecStart=/usr/bin/frps -c ${CREDENTIALS_DIRECTORY}/config

[Install]
WantedBy=multi-user.target