nginx: make sure https redirect works

This commit is contained in:
Lukáš Kucharczyk 2021-06-21 11:28:36 +02:00
parent 069314f9d6
commit a13a7adf67
No known key found for this signature in database
GPG Key ID: 65524498C0196B64
4 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,7 @@
server { server {
listen 80;
server_name auth.{{ base_domain }}; server_name auth.{{ base_domain }};
return 301 https://$host$request_uri; listen 80;
return 301 https://$server_name$request_uri;
} }
server { server {

View File

@ -1,6 +1,7 @@
server { server {
server_name "jellyfin.{{ base_domain }}";
listen 80; listen 80;
return 301 https://$host$request_uri; return 301 https://$server_name$request_uri;
} }
server { server {

View File

@ -1,6 +1,7 @@
server { server {
listen 80; server_name "keycloak.{{ base_domain }}";
return 301 https://$host$request_uri; listen 80;
return 301 https://$server_name$request_uri;
} }
server { server {

View File

@ -1,7 +1,7 @@
server { server {
listen 80;
server_name portainer.{{ base_domain }}; server_name portainer.{{ base_domain }};
return 301 https://$host$request_uri; listen 80;
return 301 https://$server_name$request_uri;
} }
server { server {