Skip to content

Commit

Permalink
HSC-1232 - redirect all http traffic to https (#768)
Browse files Browse the repository at this point in the history
* HSC-1232 - redirect all http traffic to https

* Fixed indent
  • Loading branch information
julbra authored and nwmac committed Oct 21, 2016
1 parent 88a6964 commit 20207e6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/nginx.conf.HCP
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ http {

server {
listen 80;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;

ssl_certificate /etc/secrets/console-cert;
Expand Down
4 changes: 4 additions & 0 deletions containers/nginx/conf/nginx.HCP.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ http {

server {
listen 80;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;

ssl_certificate /etc/secrets/console-cert;
Expand Down
4 changes: 4 additions & 0 deletions containers/nginx/conf/nginx.dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ http {

server {
listen 80;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;

ssl_certificate /etc/secrets/server.crt;
Expand Down

0 comments on commit 20207e6

Please sign in to comment.