containers/fluorite: use tun address for proxy
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run

This commit is contained in:
Cilly Leang 2026-06-17 01:02:59 +10:00
parent 003b6c277b
commit d6fc70612a
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -16,6 +16,8 @@
host4 = subnet4 1; host4 = subnet4 1;
client4 = subnet4 2; client4 = subnet4 2;
clientTun = "100.67.2.101";
modules = [ modules = [
./configuration.nix ./configuration.nix
{ {
@ -45,7 +47,7 @@
services.nginx.virtualHosts."${fqdn}" = { services.nginx.virtualHosts."${fqdn}" = {
useACMEHost = "lava.moe"; useACMEHost = "lava.moe";
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://[${client}]:5030"; locations."/".proxyPass = "http://[${clientTun}]:5030";
listenAddresses = listenAddr; listenAddresses = listenAddr;
}; };
@ -53,7 +55,7 @@
services.nginx.virtualHosts."${altfqdn}" = { services.nginx.virtualHosts."${altfqdn}" = {
useACMEHost = hostfqdn; useACMEHost = hostfqdn;
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://[${client}]:5030"; locations."/".proxyPass = "http://[${clientTun}]:5030";
listenAddresses = listenAddr; listenAddresses = listenAddr;
}; };