Skip to content

Commit

Permalink
Merge pull request #60 from doug-w/dev/https-supremacy
Browse files Browse the repository at this point in the history
Redirect to port 443 when connecting to port 80 in the default docker…
  • Loading branch information
MeanderingCode authored Jan 28, 2019
2 parents 696789e + 384649e commit d93f9a9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deploy/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
server {
listen 80;
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
server_name localhost;
server_name _;

ssl_certificate /etc/nginx/snakeoil.crt;
ssl_certificate_key /etc/nginx/snakeoil.key;
Expand Down

0 comments on commit d93f9a9

Please sign in to comment.