Created
May 30, 2017 15:48
-
-
Save p-s-dev/3efab28b485260511de273aa197558f2 to your computer and use it in GitHub Desktop.
nginx forward 80 to 443
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_tokens off; | |
return 301 https://$host$request_uri; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:mainline-alpine | |
COPY default.conf /etc/nginx/conf.d/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment