mirror of
https://github.com/Cian-H/My_NixOS_Config.git
synced 2025-12-23 07:21:58 +00:00
Added managed subnet and set caddy to static ip
This commit is contained in:
@@ -13,7 +13,9 @@
|
|||||||
autoUpdate.enable = true;
|
autoUpdate.enable = true;
|
||||||
# A network for exposing endpoints to the reverse proxy
|
# A network for exposing endpoints to the reverse proxy
|
||||||
networks = {
|
networks = {
|
||||||
proxy-net = {};
|
proxy-net = {
|
||||||
|
subnet = "192.168.12.0/24";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
image = "docker.io/library/caddy:latest";
|
image = "docker.io/library/caddy:latest";
|
||||||
autoUpdate = "registry";
|
autoUpdate = "registry";
|
||||||
network = "proxy-net";
|
network = "proxy-net";
|
||||||
|
ip4 = "192.168.12.254";
|
||||||
ports = [
|
ports = [
|
||||||
"8080:80"
|
"8080:80"
|
||||||
"8443:443"
|
"8443:443"
|
||||||
|
|||||||
Reference in New Issue
Block a user