mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Unified http and https nginx proxy
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
location /
|
||||
{
|
||||
proxy_pass https://127.0.0.1:{{https_port}}/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
||||
proxy_connect_timeout 300;
|
||||
proxy_send_timeout 300;
|
||||
proxy_read_timeout 300;
|
||||
send_timeout 300;
|
||||
}
|
@@ -1,6 +1,10 @@
|
||||
location /
|
||||
{
|
||||
proxy_pass http://127.0.0.1:{{http_port}}/;
|
||||
{% if https_port is defined %}
|
||||
proxy_pass https://127.0.0.1:{{https_port}}/;
|
||||
{% else %}
|
||||
proxy_pass http://127.0.0.1:{{http_port}}/;
|
||||
{% endif %}
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
||||
|
Reference in New Issue
Block a user