Move traefik routers/services to applicable service/container.nix
This commit is contained in:
parent
54004d97cd
commit
d660bf8101
15 changed files with 255 additions and 185 deletions
|
@ -17,4 +17,24 @@
|
|||
log.LEVEL = "Info";
|
||||
};
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http.routers = {
|
||||
forgejo = {
|
||||
rule = "Host(`git.sajenim.dev`)";
|
||||
entryPoints = [
|
||||
"websecure"
|
||||
];
|
||||
middlewares = [
|
||||
"geoblock"
|
||||
];
|
||||
service = "forgejo";
|
||||
};
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http.services = {
|
||||
forgejo.loadBalancer.servers = [
|
||||
{ url = "http://192.168.1.102:3131"; }
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue