allow http to continainer backend
All checks were successful
continuous-integration/drone/push Build is passing

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 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 ansible_host: matrix.intra.tormakris.dev
webserver: webserver:
- domain: "_" - domain: "matrix.tormakristof.eu"
port: 8080 port: 8080
bigrequests: false bigrequests: false
https: false
- domain: "chat.tormakristof.eu" - domain: "chat.tormakristof.eu"
port: 8181 port: 8181
bigrequests: false bigrequests: false
https: false
... ...

View File

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

View File

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

View File

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

View File

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

View File

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