allow http to continainer backend
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -2,4 +2,5 @@ webserver:
|
||||
- domain: "_"
|
||||
port: 8080
|
||||
bigrequests: false
|
||||
https: false
|
||||
...
|
||||
|
@ -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 %}
|
||||
}
|
||||
|
Reference in New Issue
Block a user