You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
698 B
Plaintext
30 lines
698 B
Plaintext
2 years ago
|
map $host $proxy_name {
|
||
|
hostnames;
|
||
|
|
||
2 years ago
|
{{ netmaker_ui.host }}.{{ netmaker_base_domain }} netmaker-ui:80;
|
||
|
{{ netmaker_api.host }}.{{ netmaker_base_domain }} netmaker:8081;
|
||
2 years ago
|
|
||
|
{{ netmaker_broker.tls_host }}.{{ netmaker_base_domain }} mosquitto:8883;
|
||
|
|
||
2 years ago
|
{{ netmaker_rqlite.http_host }}.{{ ansible_facts.nodename }} rqlite:4001;
|
||
2 years ago
|
|
||
|
default 444;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
resolver 127.0.0.11; # Explicitly set docker-resolver
|
||
|
|
||
2 years ago
|
listen 8443 ssl;
|
||
2 years ago
|
|
||
|
ssl_certificate /certs/node.crt;
|
||
|
ssl_certificate_key /certs/node.key;
|
||
|
|
||
|
if ($proxy_name = 444){
|
||
|
return 444;
|
||
|
}
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://$proxy_name;
|
||
|
}
|
||
|
}
|