Refactor
This commit is contained in:
@@ -258,31 +258,29 @@ let
|
||||
];}#)];}
|
||||
];
|
||||
in {
|
||||
sops = false;
|
||||
db = false;
|
||||
|
||||
containers = {
|
||||
server = builder.mkContainer {
|
||||
subdomain = containerCfg.subdomain;
|
||||
image = "ghcr.io/gethomepage/homepage:${version}";
|
||||
port = 3000;
|
||||
extraEnv = {
|
||||
HOMEPAGE_VAR_TITLE="${serverCfg.domain}";
|
||||
HOMEPAGE_ALLOWED_HOSTS = "${containerCfg.subdomain}.${serverCfg.domain},${builder.host}";
|
||||
};
|
||||
extraLabels = {
|
||||
"traefik.http.routers.${containerCfg.subdomain}.service" = "${containerCfg.subdomain}";
|
||||
};
|
||||
overrides = {
|
||||
environmentFiles = [ config.sops.secrets."CUSTOM".path ];
|
||||
volumes = [
|
||||
"${settings}:/app/config/settings.yaml:ro"
|
||||
"${services}:/app/config/services.yaml:ro"
|
||||
"${widgets}:/app/config/widgets.yaml:ro"
|
||||
"${bookmarks}:/app/config/bookmarks.yaml:ro"
|
||||
];
|
||||
};
|
||||
runtime = {
|
||||
containers = {
|
||||
server = builder.mkContainer {
|
||||
subdomain = containerCfg.subdomain;
|
||||
image = "ghcr.io/gethomepage/homepage:${version}";
|
||||
port = 3000;
|
||||
extraEnv = {
|
||||
HOMEPAGE_VAR_TITLE="${serverCfg.domain}";
|
||||
HOMEPAGE_ALLOWED_HOSTS = "${containerCfg.subdomain}.${serverCfg.domain},${builder.host}";
|
||||
};
|
||||
extraLabels = {
|
||||
"traefik.http.routers.${containerCfg.subdomain}.service" = "${containerCfg.subdomain}";
|
||||
};
|
||||
overrides = {
|
||||
environmentFiles = [ config.sops.secrets."CUSTOM".path ];
|
||||
volumes = [
|
||||
"${settings}:/app/config/settings.yaml:ro"
|
||||
"${services}:/app/config/services.yaml:ro"
|
||||
"${widgets}:/app/config/widgets.yaml:ro"
|
||||
"${bookmarks}:/app/config/bookmarks.yaml:ro"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user