The user mzya is trying to install Discourse on a server with an existing Nginx site, using a secondary IP address. They encounter connection issues due to port conflicts. itsbhanusharma suggests using the tutorial on running other websites alongside Discourse. Despite following the guide, mzya still faces issues until they enable DOCKER_USE_HOSTNAME: true in app.yml, which resolves the problem mzya.
I’ve been trying to figure out how to install discourse alongside my other Nginx sites, however, I continue get this message upon setup:
WARNING: Port 443 of computer does not appear to be accessible using hostname: lush.gg.
WARNING: Connection to http://<domain> (port 80) also fails.
I made sure Cloudflare was NOT proxying the ip address. I am also using a secondary ip address that is attached to the server, there is already a Nginx website on the first one.
updated app.yml
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
- "templates/web.socketed.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"
## 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:
#- "25654:80" # http
#- "443:443" # https
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
- "templates/web.socketed.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"
## 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:
#- "25654:80" # http
#- "443:443" # https