-
-
Notifications
You must be signed in to change notification settings - Fork 19
HTTP Tunneling
Anim Mouse edited this page Dec 15, 2023
·
5 revisions
- Disable the dashboard by commenting or removing these lines in frps.toml
# frp dashboard
#webServer.addr = "::"
#webServer.port = 8080
#webServer.user = "admin"
#webServer.password = "{{ .Envs.FRP_DASHBOARD_PWD }}"
- Remove dashboard environment variables.
fly secrets set -a app-name FRP_DASHBOARD_PWD=
If you want fly.io to handle TLS and certificates for you.
- Add these lines in frps.toml below
proxyBindAddr = "0.0.0.0"
vhostHTTPPort = 8080
If you want your server to handle TLS and certificates so that the connection is end-to-end encrypted and you manage the certificates at your server. Take note that you will lose fly.io's HTTP level load balancing and instead use TCP level load balancing.
- Comment or remove these lines in fly.toml
# frp HTTP server (for dashboard or HTTP tunnel)
#[http_service]
# internal_port = 8080
# force_https = true
# [http_service.concurrency]
# type = "requests"
# hard_limit = 25
# soft_limit = 20
- Add these lines in fly.toml below
# frp data plane
# frp HTTP tunnel
[[services]]
protocol = "tcp"
internal_port = 8080
[[services.ports]]
port = 80
[services.concurrency]
type = "connections"
hard_limit = 25
soft_limit = 20
# frp HTTPS tunnel
[[services]]
protocol = "tcp"
internal_port = 8081
[[services.ports]]
port = 443
[services.concurrency]
type = "connections"
hard_limit = 25
soft_limit = 20
- Add these lines in frps.toml below
proxyBindAddr = "0.0.0.0"
vhostHTTPPort = 8080
vhostHTTPSPort = 8081