begin work on authentik again
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
{ config, lib, ... }: {
|
||||
{ config, lib, ... }: let
|
||||
|
||||
hostPort = 9000;
|
||||
|
||||
subdomain = "portainer";
|
||||
|
||||
name = "portainer";
|
||||
|
||||
in {
|
||||
|
||||
options.sysconfig.docker.portainer.enable = with lib; mkOption {
|
||||
type = with types; bool;
|
||||
@@ -9,7 +17,7 @@
|
||||
|
||||
networking.firewall.interfaces = {
|
||||
"ve-traefik" = {
|
||||
allowedTCPPorts = [ 9000 ];
|
||||
allowedTCPPorts = [ hostPort ];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -19,28 +27,28 @@
|
||||
# unstable, waiting for 26.05
|
||||
#pull = "newer";
|
||||
|
||||
hostname = "portainer.esotericbytes.com";
|
||||
hostname = "${subdomain}.esotericbytes.com";
|
||||
|
||||
networks = [
|
||||
"docker-main"
|
||||
];
|
||||
|
||||
labels = {
|
||||
"traefik.http.routers.portainer.entrypoints" = "localsecure";
|
||||
"traefik.http.routers.portainer.rule" = "Host(`prtnr.esotericbytes.com`)";
|
||||
"traefik.http.routers.portainer.service" = "portainer";
|
||||
"traefik.http.routers.portainer.tls.certResolver" = "cloudflare";
|
||||
"traefik.http.routers.${name}.entrypoints" = "localsecure";
|
||||
"traefik.http.routers.${name}.rule" = "Host(`${subdomain}.esotericbytes.com`)";
|
||||
"traefik.http.routers.${name}.service" = "${name}";
|
||||
"traefik.http.routers.${name}.tls.certResolver" = "cloudflare";
|
||||
|
||||
"traefik.http.services.portainer.loadbalancer.server.url" = "http://192.168.100.10:9000";
|
||||
"traefik.http.services.${name}.loadbalancer.server.url" = "http://192.168.100.10:${builtins.toString hostPort}";
|
||||
};
|
||||
|
||||
|
||||
extraOptions = lib.mkIf config.sysconfig.docker.nvidia [
|
||||
"--ip=192.168.101.2"
|
||||
];
|
||||
|
||||
ports = [
|
||||
"127.0.0.1:8000:8000"
|
||||
"9000:9000"
|
||||
"${builtins.toString hostPort}:9000"
|
||||
];
|
||||
|
||||
volumes = [
|
||||
|
||||
Reference in New Issue
Block a user