# file /etc/frps.ini
[common]
bind_port = 7000
vhost_http_port = 8080
subdomain_host = your.domain.tld
HTTP Server Reverse Proxy
# file /etc/caddy/Caddyfile
* .your.domain.tld {
reverse_proxy localhost:8080
}
# file /etc/systemd/system/frps.service
[Unit]
Description=FRP Server
After=network.target
[Service]
Type=simple
User=root
Restart=always
RestartSec=5s
ExecStart=/usr/local/bin/frps -c /etc/frps.ini
PermissionsStartOnly=true
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=sleepservice
[Install]
WantedBy=multi-user.target
# file /etc/frpc.ini
[common]
server_addr = < your-server-ip-address>
server_port = 7000
[test]
type = http
local_ip = 127.0.0.1
local_port = < your-local-app-port>
subdomain = test
# file /etc/systemd/system/frpc.service
[Unit]
Description=FRP Client
After=network.target
[Service]
Type=simple
User=root
Restart=always
RestartSec=5s
ExecStart=/usr/local/bin/frpc -c /etc/frpc.ini
PermissionsStartOnly=true
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=sleepservice
[Install]
WantedBy=multi-user.target