nginx proxy module
This commit is contained in:
@@ -5,21 +5,18 @@ let
|
||||
in
|
||||
{
|
||||
options.my.servers.metube = setup.mkOptions "metube" "bajameesta" 8881;
|
||||
config = {
|
||||
virtualisation.oci-containers.containers.metube = lib.mkIf cfg.enable {
|
||||
image = "ghcr.io/alexta69/metube:2024-11-05";
|
||||
ports = [ "${toString cfg.port}:8081" ];
|
||||
volumes = [
|
||||
"${config.my.containerData}/metube:/downloads"
|
||||
"/home/jawz/.librewolf/cookies.txt:/cookies.txt"
|
||||
];
|
||||
environment = {
|
||||
TZ = config.my.timeZone;
|
||||
YTDL_OPTIONS = ''{"cookiefile":"/cookies.txt"}'';
|
||||
PUID = toString config.users.users.jawz.uid;
|
||||
PGID = toString config.users.groups.piracy.gid;
|
||||
};
|
||||
config.virtualisation.oci-containers.containers.metube = lib.mkIf cfg.enable {
|
||||
image = "ghcr.io/alexta69/metube:2024-11-05";
|
||||
ports = [ "${toString cfg.port}:8081" ];
|
||||
volumes = [
|
||||
"${config.my.containerData}/metube:/downloads"
|
||||
"/home/jawz/.librewolf/cookies.txt:/cookies.txt"
|
||||
];
|
||||
environment = {
|
||||
TZ = config.my.timeZone;
|
||||
YTDL_OPTIONS = ''{"cookiefile":"/cookies.txt"}'';
|
||||
PUID = toString config.users.users.jawz.uid;
|
||||
PGID = toString config.users.groups.piracy.gid;
|
||||
};
|
||||
services.nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (setup.proxyReverse cfg);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user