I’m now deployed NPS but having some problem with https and customized domain.
I have no problem on the control panel, https and customized domain works:
https://nps.fly.dev:8080
https://nps.lomorage.com:8080
I’ve add domain settings and verified that:
The certificate for *.lomorage.com has been issued.
Hostname = *.lomorage.com
DNS Provider = cloudflare
Certificate Authority = Let's Encrypt
Issued = rsa,ecdsa
Added to App = 46 minutes ago
Source = fly
However when I tried the tunnel with subdomain like “bob.lomorage.com”, I don’t see the traffic forwarded in the log. I can’t figure out why the web admin service on 8080 works but not tunnel on 443, any thoughts?
Below is the fly.toml file, the external tunnel service port is 443, I don’t have https running on nps, so it’s using fly.io to handle the https and forward it nps, just like using nginx as https proxy.
# fly.toml file generated for nps on 2022-10-11T14:44:40-07:00
app = "nps"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
[experimental]
allowed_public_ports = [80, 443]
auto_rollback = true
[[services]]
http_checks = []
internal_port = 80
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
handlers = ["tls", "http"]
port = 8080
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
[[services]]
http_checks = []
internal_port = 8024
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
port = 8024
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"