Skip to content

Commit

Permalink
Don't redirect HTTP to HTTPS
Browse files Browse the repository at this point in the history
It will most likely just cause troubles on local development.
  • Loading branch information
arnested committed Jun 28, 2024
1 parent 38abfed commit f71e0bc
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 f71e0bc

Please sign in to comment.