Closed fuji246 closed 1 year ago
试了在本地部署,通过端口转发,都是可以的。看起来配置子域名使用的是默认的http 80和https 443端口。改了一下fly.toml,需要把80/443/8080/8024端口都打开。现在http可以了,但https还是不行。
# 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]]
force_https = false
handlers = ["http"]
port = 80
[[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"
搞定了,fly.io的https要配置一下。
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
想在fly.io上部署一个试试,但碰到些问题。
Describe the solution you'd like A clear and concise description of what you want to happen.
问题1: 配置文件不存在导致进程退出,这个修改Docker文件,把conf目录下需要的文件拷贝过去即可,修改后的docker文件
fly.toml文件内容如下:
试过域名和端口的修改方案,貌似的都不行,可能是什么原因?
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.