rabbah commented on a change in pull request #4329: Redirect http to https and
other nginx config cleanup.
URL:
https://github.com/apache/incubator-openwhisk/pull/4329#discussion_r264046959
##########
File path: ansible/roles/nginx/templates/nginx.conf.j2
##########
@@ -89,20 +89,27 @@ http {
{# Turn off sending information about the server to the client #}
server_tokens off;
+ # Redirect all http to https.
+ server {
+ listen 80 default_server;
+ server_name _;
+ return 301 https://$host$request_uri;
Review comment:
I could do that but note that port 80 wasn’t open at all - so one would have
had to provide their own nginx anyway?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services