是的,我在容器外部的本地反向代理上使用了一个套接字,并且我已按照 app.yml 中的第 5 步操作。
/var/discourse/containers# grep web.socketed.template.yml app.yml
- "templates/web.socketed.template.yml"
/var/discourse/containers# grep templates/web.ssl.template.yml app.yml
# - "templates/web.ssl.template.yml"
/var/discourse/containers# grep templates/web.letsencrypt.ssl.template.yml app.yml
# - "templates/web.letsencrypt.ssl.template.yml"
/var/discourse/containers# grep http app.yml
# - "80:80" # http
# - "443:443" # https
/var/discourse/containers# grep DISCOURSE_FORCE_HTTPS app.yml
DISCOURSE_FORCE_HTTPS: true
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
## Uncomment the next line to enable the IPv6 listener
#- "templates/web.ipv6.template.yml"
- "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
# - "templates/web.ssl.template.yml"
# - "templates/web.letsencrypt.ssl.template.yml"
- "templates/web.socketed.template.yml"
## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see https://meta.discourse.org/t/17247 for details
#expose:
# - "80:80" # http
# - "443:443" # https
我已阅读:Discourse working with jwilder /nginx proxy & acme-companion
但我无法真正理解它与我的问题有什么关系……