nixin-krops/config/arachnide/proxy-configuration.nix

53 lines
1.7 KiB
Nix
Raw Normal View History

# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
# proxy for nixin-web on arachnide
services.traefik.dynamicConfigOptions.http.services."service-nixin-web-lab12" = {
loadBalancer.servers = [
{ url = "http://localhost:8081"; }
];
};
services.traefik.dynamicConfigOptions.http.routers."router-nixin-web-lab12" = {
rule = "Host(`nixin.lab12.fr`)";
service = "service-nixin-web-lab12";
};
# proxy for nixin-web on sanji
services.traefik.dynamicConfigOptions.http.services."service-nixin-web-mrflos" = {
loadBalancer.servers = [
{ url = "http://192.168.12.5:8081"; }
];
};
services.traefik.dynamicConfigOptions.http.routers."router-nixin-web-mrflos" = {
rule = "Host(`nixin.sanji.mrflos.pw`)";
service = "service-nixin-web-mrflos";
};
# proxy for nextcloud on arachnide
services.traefik.dynamicConfigOptions.http.services."service-nextcloud-lab12" = {
loadBalancer.servers = [
{ url = "http://10.10.2.2:80"; }
];
};
services.traefik.dynamicConfigOptions.http.routers."router-nextcloud_lab12" = {
rule = "Host(`nuage.lab12.fr`)";
service = "service-nextcloud_lab12";
};
# proxy for forgejo on arachnide
services.traefik.dynamicConfigOptions.http.services."service-forgejo-lab12" = {
loadBalancer.servers = [
{ url = "http://localhost:8082"; }
];
};
services.traefik.dynamicConfigOptions.http.routers."router-forgejo-lab12" = {
rule = "Host(`forge.lab12.fr`)";
service = "service-forgejo_lab12";
};
}