I am trying to install discourse on my system but am not having any success.
I have a nginx server running on a host machine and discourse is running in a dedicated VM on that host. The nginx server takes acre of all ssl and all http to https redirection. I would like to run plain http between the nginx and the discourse installation. But I do not know how to disable discourse from using ssl.
With ssl configured, discourse sends and endless redirect sequence from my http source to https.
Here is my nginx config snippet
server { listen 443 ssl; listen [::]:443 ssl; server_name forum.example.com; # SSL config ... ssl_certificate /etc/nginx/certificates/cloudflare-example.com.pem; ssl_certificate_key /etc/nginx/certificates/cloudflare-example.com.key; # Reverse proxy to Discourse: location / { proxy_pass http://192.168.1.123:80/; proxy_http_version 1.1; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 120; } }
I have tried to comment out the lines:
- “templates/web.ssl.template.yml”
- “templates/web.letsencrypt.ssl.template.yml”
from app.yml, and then rebuilding using
./launcher rebuild app
but the http server doesn’t start up
Are there any instructions for such a setup somewhere? Or do I have to confgure ssl between my nginx and discourse?