Update reverse proxy for our printer and webserver

This commit is contained in:
♥ Minnie ♥ 2024-06-03 21:19:58 +08:00
parent 3bf73b3dec
commit 885fdd0d0a
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
2 changed files with 32 additions and 1 deletions

View file

@ -2,6 +2,17 @@
{ {
services.traefik.dynamicConfigOptions.http.routers = { services.traefik.dynamicConfigOptions.http.routers = {
httpd = {
rule = "Host(`sajenim.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"geoblock"
];
service = "httpd";
};
forgejo = { forgejo = {
rule = "Host(`git.sajenim.dev`)"; rule = "Host(`git.sajenim.dev`)";
entryPoints = [ entryPoints = [
@ -113,7 +124,7 @@
}; };
qbittorrent = { qbittorrent = {
rule = "Host(`qbittorrent.kanto.dev`)"; rule = "Host(`torrent.kanto.dev`)";
entryPoints = [ entryPoints = [
"websecure" "websecure"
]; ];
@ -144,6 +155,17 @@
]; ];
service = "microbin"; service = "microbin";
}; };
ender1 = {
rule = "Host(`e1.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"admin"
];
service = "ender1";
};
}; };
} }

View file

@ -2,9 +2,15 @@
{ {
services.traefik.dynamicConfigOptions.http.services = { services.traefik.dynamicConfigOptions.http.services = {
# sajenim.dev
httpd.loadBalancer.servers = [
{ url = "http://192.168.1.102:5624"; }
];
forgejo.loadBalancer.servers = [ forgejo.loadBalancer.servers = [
{ url = "http://192.168.1.102:3131"; } { url = "http://192.168.1.102:3131"; }
]; ];
# kanto.dev
homarr.loadBalancer.servers = [ homarr.loadBalancer.servers = [
{ url = "http://192.168.1.102:7575"; } { url = "http://192.168.1.102:7575"; }
]; ];
@ -38,6 +44,9 @@
microbin.loadBalancer.servers = [ microbin.loadBalancer.servers = [
{ url = "http://192.168.1.102:8181"; } { url = "http://192.168.1.102:8181"; }
]; ];
ender1.loadBalancer.servers = [
{ url = "http://192.168.1.103:80"; }
];
}; };
} }