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

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

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 %}
}