explicitly use v4 localhost
This commit is contained in:
committed by
Joakim Repomaa
parent
39134ba640
commit
599ca53f1d
@@ -42,6 +42,6 @@ in
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
"${fqdn}".locations."/".proxy = "http://localhost:${toString port}";
|
"${fqdn}".locations."/".proxy = "http://127.0.0.1:${toString port}";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}";
|
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
|
||||||
|
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
ensureDatabases = [ "grafana" ];
|
ensureDatabases = [ "grafana" ];
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ in
|
|||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}";
|
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
|
||||||
|
|
||||||
fileSystems."${immich_data_dir}" = {
|
fileSystems."${immich_data_dir}" = {
|
||||||
device = "//u407959.your-storagebox.de/backup/immich";
|
device = "//u407959.your-storagebox.de/backup/immich";
|
||||||
|
|||||||
@@ -19,5 +19,5 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}";
|
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,5 +10,5 @@ in
|
|||||||
inherit port;
|
inherit port;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}";
|
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}";
|
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ sshPort ];
|
networking.firewall.allowedTCPPorts = [ sshPort ];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
modules.webserver.vHosts.${fqdn}.locations."/" = {
|
modules.webserver.vHosts.${fqdn}.locations."/" = {
|
||||||
proxy = "http://localhost:${toString port}";
|
proxy = "http://127.0.0.1:${toString port}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
modules.webserver.vHosts.${fqdn}.locations = {
|
modules.webserver.vHosts.${fqdn}.locations = {
|
||||||
"/".proxy = "http://localhost:8000";
|
"/".proxy = "http://127.0.0.1:8000";
|
||||||
"/notifications/hub".proxy = "http://localhost:3012";
|
"/notifications/hub".proxy = "http://127.0.0.1:3012";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}";
|
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user