31 lines
569 B
Nix
31 lines
569 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
dn = "ytdl.tfcconnection.org";
|
|
in
|
|
with lib;
|
|
{
|
|
services.nginx.virtualHosts.${dn} = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:8585";
|
|
};
|
|
};
|
|
virtualisation = {
|
|
podman = {
|
|
enable = true;
|
|
};
|
|
oci-containers = {
|
|
# backend = "podman";
|
|
containers = {
|
|
metube = {
|
|
image = "ghcr.io/alexta69/metube";
|
|
ports = [ "8585:8081" ];
|
|
volumes = [ "/storage/downloads:/downloads" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|