Skip to content

Commit

Permalink
Merge pull request #9 from reload/no-redir
Browse files Browse the repository at this point in the history
Don't redirect HTTP to HTTPS
  • Loading branch information
arnested authored Jun 28, 2024
2 parents 38abfed + f71e0bc commit 49481fa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
6 changes: 4 additions & 2 deletions context/base/etc/https-proxy/ssl.conf.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
listen 80;
listen [::]:80;
listen 443 default_server ssl;
listen [::]:443 default_server ssl;
server_name _;

ssl_certificate /cert/${FIRST_VIRTUAL_HOST}.crt;
Expand Down
6 changes: 0 additions & 6 deletions context/drupal/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
# and https://github.com/rpayanm/drupal/blob/master/nginx/default
# and https://blog.john-pfeiffer.com/drupal-with-docker-compose-and-nginx-and-php-fpm-and-mariadb/

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

server {

include include.d/ssl.conf;
Expand Down
6 changes: 0 additions & 6 deletions context/nextjs/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}

server {

include include.d/ssl.conf;
Expand Down
6 changes: 0 additions & 6 deletions context/proxy/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}

server {

include include.d/ssl.conf;
Expand Down

0 comments on commit 49481fa

Please sign in to comment.