mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
initial cleanup server-manager
This commit is contained in:
13
roles/native-nginx-docker-proxy/templates/domain.conf.j2
Normal file
13
roles/native-nginx-docker-proxy/templates/domain.conf.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
server
|
||||
{
|
||||
server_name {{domain}};
|
||||
|
||||
{% if client_max_body_size is defined %}
|
||||
client_max_body_size {{ client_max_body_size }};
|
||||
{% endif %}
|
||||
|
||||
{% include 'roles/native-letsencrypt/templates/ssl_header.j2' %}
|
||||
|
||||
{% include 'proxy_pass.conf.j2' %}
|
||||
|
||||
}
|
11
roles/native-nginx-docker-proxy/templates/proxy_pass.conf.j2
Normal file
11
roles/native-nginx-docker-proxy/templates/proxy_pass.conf.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
location /
|
||||
{
|
||||
proxy_pass http://127.0.0.1:{{http_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;
|
||||
}
|
Reference in New Issue
Block a user