想把discourse已经在用的80、443端口改一下,比如1080,10443,请问该如何操作?
目前参考 Run other websites on the same machine as Discourse - sysadmin - Discourse Meta 修改了’app.yml’,改成了
expose:
- “1080:80”
rebuild以后终端显示正常
使用nginx魔改的OpenResty做反向代理,这套工具在其他服务很正常,比如http://144.217.90.95:1200
,代理成了http://rsshub.beginner.center
,已经可以正常访问,但代理discourse时出现异常,把http://144.217.90.95:1080
代理成http://forum.beginner.center
却报错502
查看了OpenResty(nginx魔改)后台报错日志
2024/04/17 11:26:27 [error] 294#294: *5624 connect() failed (111: Connection refused) while connecting to upstream, client: 58.153.170.44, server: forum.beginner.center, request: "GET /service-worker.js HTTP/2.0", upstream: "http://144.217.90.95:1080/service-worker.js", host: "forum.beginner.center", referrer: "https://forum.beginner.center/service-worker.js"
2024/04/17 11:27:55 [error] 338#338: *5959 connect() failed (111: Connection refused) while connecting to upstream, client: 223.104.44.53, server: forum.beginner.center, request: "GET / HTTP/1.1", upstream: "http://144.217.90.95:1080/", host: "forum.beginner.center"
2024/04/17 11:27:56 [error] 338#338: *5959 connect() failed (111: Connection refused) while connecting to upstream, client: 223.104.44.53, server: forum.beginner.center, request: "GET /favicon.ico HTTP/1.1", upstream: "http://144.217.90.95:1080/favicon.ico", host: "forum.beginner.center", referrer: "http://forum.beginner.center/"
2024/04/17 11:39:00 [error] 353#353: *6712 connect() failed (111: Connection refused) while connecting to upstream, client: 58.153.170.44, server: forum.beginner.center, request: "GET / HTTP/2.0", upstream: "http://144.217.90.95:1080/", host: "forum.beginner.center"
2024/04/17 11:39:02 [error] 353#353: *6712 connect() failed (111: Connection refused) while connecting to upstream, client: 58.153.170.44, server: forum.beginner.center, request: "GET /service-worker.js HTTP/2.0", upstream: "http://144.217.90.95:1080/service-worker.js", host: "forum.beginner.center", referrer: "https://forum.beginner.center/service-worker.js"
2024/04/17 11:39:24 [error] 353#353: *6717 connect() failed (111: Connection refused) while connecting to upstream, client: 42.120.74.215, server: forum.beginner.center, request: "POST /message-bus/f6c7f114f96f40bfa1de74d4dee36743/poll?dlp=t HTTP/2.0", upstream: "http://144.217.90.95:1080/message-bus/f6c7f114f96f40bfa1de74d4dee36743/poll?dlp=t", host: "forum.beginner.center", referrer: "https://forum.beginner.center/t/topic/859"
2024/04/17 11:39:47 [error] 353#353: *6719 connect() failed (111: Connection refused) while connecting to upstream, client: 39.100.35.194, server: forum.beginner.center, request: "GET /posts.rss HTTP/1.1", upstream: "http://144.217.90.95:1080/posts.rss", host: "forum.beginner.center"