Open abctaylor opened 5 years ago
In case the motivation is not clear, I suspect many selfhosters are running multiple web servers in their environments, on separate VMs. I use HAProxy to do domain-based http/s routing to:
These are separate servers and a wildcard TLD exists at the load balancer to encrypt all traffic to/from the load balancer to the Internet.
It would be great if the script could give an option to proceed with SSL or not, bearing in mind it might be handled somewhere else.
thank you
Impacted versions
Steps to reproduce
Full trace using --debug option or current behaviour
You will get stuck in a 301 Moved Permanently loop
Expected behavior
Installer should give option to install self-signed SSL
RESOLUTION
Edit the nginx conf file for your setup, e.g. mail.example.com.conf as follows:
rewrite ^ https://$server_name$request_uri? permanent;
in first server block}
andserver {
respectivelylisten
directives (both of them) from old :443 server blockserver_name
directive from old :443 server blockssl_