swag dashboard
This commit is contained in:
@@ -7,14 +7,14 @@ in {
|
|||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ cfg.httpPort cfg.httpsPort ];
|
allowedTCPPorts = [ cfg.httpPort cfg.httpsPort 81 ];
|
||||||
allowedUDPPorts = [ cfg.httpPort cfg.httpsPort ];
|
allowedUDPPorts = [ cfg.httpPort cfg.httpsPort 81 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers."${cfg.name}" = {
|
virtualisation.oci-containers.containers."${cfg.name}" = {
|
||||||
autoStart = cfg.autoStart;
|
autoStart = cfg.autoStart;
|
||||||
image = cfg.image;
|
image = cfg.image;
|
||||||
ports = [ "${toString cfg.httpPort}:80" "${toString cfg.httpsPort}:443" ];
|
ports = [ "${toString cfg.httpPort}:80" "${toString cfg.httpsPort}:443" "81:81" ];
|
||||||
volumes = [ "${cfg.configPath}:/config" ];
|
volumes = [ "${cfg.configPath}:/config" ];
|
||||||
environment = {
|
environment = {
|
||||||
PUID = cfg.puid;
|
PUID = cfg.puid;
|
||||||
@@ -24,6 +24,7 @@ in {
|
|||||||
URL = cfg.url;
|
URL = cfg.url;
|
||||||
VALIDATION = cfg.validation;
|
VALIDATION = cfg.validation;
|
||||||
SUBDOMAINS = cfg.subdomains;
|
SUBDOMAINS = cfg.subdomains;
|
||||||
|
DOCKER_MODS="linuxserver/mods:swag-dashboard";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user