๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ansible-playbooks/roles/shop/templates/nginx_server.j2

27 lines
494 B

set_real_ip_from 10.0.0.0/8;
real_ip_header X-Real-IP;
real_ip_recursive on;
location / {
proxy_pass http://127.0.0.1:{{ shop_port }};
}
location = /favicon.ico {
alias {{ shop_dir }}/assets/favicon.ico;
}
location /assets/ {
alias {{ shop_dir }}/assets/;
}
location ~ ^/orders(?:/(.*))?$ {
allow 10.0.0.0/8;
deny all;
proxy_pass http://127.0.0.1:{{ shop_port }};
}
location ~ ^/promos(?:/(.*))?$ {
allow 10.0.0.0/8;
deny all;
proxy_pass http://127.0.0.1:{{ shop_port }};
}