-
-
Notifications
You must be signed in to change notification settings - Fork 19
HTTP Tunneling
Anim Mouse edited this page Jun 12, 2022
·
5 revisions
Disable the dashboard by commenting or removing these lines in frps.ini
# frp dashboard
#dashboard_addr = ::
#dashboard_port = 8080
#dashboard_user = {{ .Envs.FRP_DASH_USER }}
#dashboard_pwd = {{ .Envs.FRP_DASH_PWD }}
#enable_prometheus = true
If you want fly.io to handle TLS and certificates for you.
- Add these lines in frps.ini
vhost_http_port = 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)
#[[services]]
# internal_port = 8080
# protocol = "tcp"
#
# [services.concurrency]
# hard_limit = 25
# soft_limit = 20
# type = "connections"
#
# [[services.ports]]
# handlers = ["http"]
# port = 80
#
# [[services.ports]]
# handlers = ["tls", "http"]
# port = 443
#
# [[services.tcp_checks]]
# grace_period = "1s"
# interval = "1m"
# restart_limit = 0
# timeout = "2s"
- Add these lines in fly.toml
# frp HTTP tunnel
[[services]]
internal_port = 8080
protocol = "tcp"
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
port = 80
# frp HTTPS tunnel
[[services]]
internal_port = 8081
protocol = "tcp"
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
port = 443
- Add these lines in frps.ini
vhost_http_port = 8080
vhost_https_port = 8081