nginx: make sure https redirect works

This commit is contained in:
Lukáš Kucharczyk 2021-06-21 11:28:36 +02:00
parent 53570a1f08
commit 8175a62c0b
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 {
listen 80;
server_name auth.{{ base_domain }};
return 301 https://$host$request_uri;
listen 80;
return 301 https://$server_name$request_uri;
}
server {

View File

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

View File

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

View File

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