Migrate admin middleware to internal
This commit is contained in:
parent
e3185359b1
commit
a5100fe7fa
|
@ -34,7 +34,7 @@ in
|
|||
"websecure"
|
||||
];
|
||||
middlewares = [
|
||||
"admin"
|
||||
"internal"
|
||||
];
|
||||
service = "lidarr";
|
||||
};
|
||||
|
|
|
@ -31,7 +31,7 @@ in
|
|||
"websecure"
|
||||
];
|
||||
middlewares = [
|
||||
"admin"
|
||||
"internal"
|
||||
];
|
||||
service = "prowlarr";
|
||||
};
|
||||
|
|
|
@ -34,7 +34,7 @@ in
|
|||
"websecure"
|
||||
];
|
||||
middlewares = [
|
||||
"admin"
|
||||
"internal"
|
||||
];
|
||||
service = "qbittorrent";
|
||||
};
|
||||
|
|
|
@ -33,7 +33,7 @@ in
|
|||
"websecure"
|
||||
];
|
||||
middlewares = [
|
||||
"admin"
|
||||
"internal"
|
||||
];
|
||||
service = "radarr";
|
||||
};
|
||||
|
|
|
@ -34,7 +34,7 @@ in
|
|||
"websecure"
|
||||
];
|
||||
middlewares = [
|
||||
"admin"
|
||||
"internal"
|
||||
];
|
||||
service = "sonarr";
|
||||
};
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
"websecure"
|
||||
];
|
||||
middlewares = [
|
||||
"admin"
|
||||
"internal"
|
||||
];
|
||||
service = "grafana";
|
||||
};
|
||||
|
|
|
@ -10,18 +10,10 @@
|
|||
|
||||
# Attached to the routers, pieces of middleware are a means of tweaking the requests before they are sent to your service
|
||||
services.traefik.dynamicConfigOptions.http.middlewares = {
|
||||
# Restrict access to admin devices only
|
||||
admin.ipwhitelist.sourcerange = [
|
||||
"127.0.0.1/32" # localhost
|
||||
"192.168.1.101" # fuchsia
|
||||
"10.100.0.2" # Pixel 6 Pro
|
||||
];
|
||||
|
||||
# Restrict access to internal networks
|
||||
internal.ipwhitelist.sourcerange = [
|
||||
"127.0.0.1/32" # localhost
|
||||
"192.168.1.1/24" # lan
|
||||
"10.100.0.0/24" # wireguard clients
|
||||
"192.168.20.1/24" # lan
|
||||
];
|
||||
|
||||
# Restrict access based on geo-location
|
||||
|
|
Loading…
Reference in a new issue