Skip to content

Instantly share code, notes, and snippets.

@p-s-dev
Created May 30, 2017 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p-s-dev/3efab28b485260511de273aa197558f2 to your computer and use it in GitHub Desktop.
Save p-s-dev/3efab28b485260511de273aa197558f2 to your computer and use it in GitHub Desktop.
nginx forward 80 to 443
server {
listen 80;
server_tokens off;
return 301 https://$host$request_uri;
}
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