Bugfix/service misdirection (#711)

This commit is contained in:
Keagan McClelland
2021-10-20 21:18:02 -06:00
committed by Aiden McClelland
parent 9df65e12ad
commit 9c1d2ed96d
4 changed files with 11 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ map $http_x_forwarded_proto $real_proto {{
}}
server {{
listen 443 ssl;
server_name {hostname}.local;
server_name .{hostname}.local;
ssl_certificate /root/appmgr/apps/{app_id}/cert-local.fullchain.crt.pem;
ssl_certificate_key /root/appmgr/apps/{app_id}/cert-local.key.pem;
location / {{
@@ -23,6 +23,6 @@ server {{
}}
server {{
listen 80;
server_name {hostname}.local;
server_name .{hostname}.local;
return 301 https://$host$request_uri;
}}

View File

@@ -1,6 +1,7 @@
server {{
listen {listen_args};
server_name {hostname}.local;
listen [::]:{listen_args_ipv6};
server_name .{hostname}.local;
{ssl_certificate_line}
{ssl_certificate_key_line}
location / {{

View File

@@ -154,6 +154,7 @@ impl NginxControllerInner {
format!(
include_str!("nginx.conf.template"),
listen_args = listen_args,
listen_args_ipv6 = listen_args,
hostname = meta.dns_base,
ssl_certificate_line = ssl_certificate_line,
ssl_certificate_key_line = ssl_certificate_key_line,