Hi all and especially @stephdl on holiday in the canyon,
After 3 weeks of struggle: installation, reinstallation, standard Discourse, nethserver-discourse, Apache disable / Nginx, Nginx only, HAProxxy, Apache only, I finally found the cause of the warning in the URL bar and the unable to reconnect after “force https”.
With standard Discourse:
The warning in the URL bar is due to the installation of the Logo
-
It is absolutely necessary not to install the logo when connecting to Discourse for the first time.
-
You must install the logo only after the configuration is complete with Settings → Branding.
-
To correct the situation:
- Remove logo in Settings → Branding.
- Reinstall the logo in Settings → Branding.
Not able to login is due to Apache
In the file: /etc/httpd/conf.d/zzz_discourse.conf, just before the line ProxyPass, add this line:
RequestHeader set X-Forwarded-Proto "https"
Restart Apache
# systemctl restart httpd
‡ It should be the same with nethserver-discourse and NGINX /etc/nginx/conf.d/zzz_discourse.conf
force https
- Settings → Security → activate “force https”.
- Finally
rebootto make absolutely sure everything is working perfectly.
Complete victory, let us raise the banner of victory.
An how-to will follow soon,
Michel-André