allow http to continainer backend
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2022-05-28 23:24:23 +02:00
parent 752f7bb80d
commit 1a886ad9d4
7 changed files with 21 additions and 3 deletions

View File

@ -1,3 +1,8 @@
---
ansible_host: bitwarden.intra.tormakris.dev
webserver:
- domain: "bitwarden.tormakristof.eu"
port: 8080
bigrequests: false
https: true
...

View File

@ -1,10 +1,12 @@
---
ansible_host: matrix.intra.tormakris.dev
webserver:
- domain: "_"
- domain: "matrix.tormakristof.eu"
port: 8080
bigrequests: false
https: false
- domain: "chat.tormakristof.eu"
port: 8181
bigrequests: false
https: false
...

View File

@ -4,10 +4,13 @@ webserver:
- domain: "prometheus.tormakristof.eu"
port: 8080
bigrequests: false
https: false
- domain: "grafana.tormakristof.eu"
port: 8181
bigrequests: false
https: false
- domain: "alertmanager.tormakristof.eu"
port: 8181
bigrequests: false
https: false
...

View File

@ -4,4 +4,5 @@ webserver:
- domain: "nextcloud.tormakristof.eu"
port: 8080
bigrequests: true
https: false
...

View File

@ -4,7 +4,9 @@ webserver:
- domain: "nexus.kmlabz.com"
port: 8080
bigrequests: true
https: false
- domain: "registry.kmlabz.com"
port: 4269
bigrequests: true
https: false
...

View File

@ -2,4 +2,5 @@ webserver:
- domain: "_"
port: 8080
bigrequests: false
https: false
...

View File

@ -62,7 +62,7 @@ http {
return 301 https://$host$request_uri;
}
{% for server in webserver %}
{%- for server in webserver %}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
@ -73,9 +73,13 @@ http {
client_max_body_size 8G;
{%- endif %}
location /{
{%- if server.https %}
proxy_pass https://127.0.0.1:{{ server.port }};
{%- else %}
proxy_pass http://127.0.0.1:{{ server.port }};
{%- endif %}
}
}
{% endfor %}
{%- endfor %}
}