[NEW] Avoids hardcoding IP address of LXD bridge network #3

Merged
jegomez merged 1 commits from detect-gateway-ip-address into main 2021-04-01 05:02:37 +00:00
Showing only changes of commit a233bb1849 - Show all commits

View File

@ -4,7 +4,7 @@ server {
server_name {{ container }}.{{ dominio }}; server_name {{ container }}.{{ dominio }};
root /var/www/{{ container }}; root /var/www/{{ container }};
location / { location / {
resolver 10.0.3.1 valid=1h; resolver {{ ansible_default_ipv4.gateway }} valid=1h;
set $container "http://{{ container }}.lxd"; set $container "http://{{ container }}.lxd";
proxy_pass $container; proxy_pass $container;