mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
Bugfix/service misdirection (#711)
This commit is contained in:
committed by
Aiden McClelland
parent
9df65e12ad
commit
9c1d2ed96d
@@ -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;
|
||||
}}
|
||||
|
||||
@@ -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 / {{
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user