This commit is contained in:
Adrian Gunnar Lauterer 2024-05-18 20:32:54 +02:00
parent 11b49a4360
commit 61df28d785
Signed by: adriangl
GPG Key ID: D33368A59745C2F0
3 changed files with 55 additions and 19 deletions

View File

@ -51,14 +51,20 @@
basicAuthFile = config.sops.secrets."nginx/defaultpass".path; basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
}; };
virtualHosts."freshrss.lauterer.it" = {
forceSSL = true;
useACMEHost = config.networking.domain;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://100.84.215.84:80";
};
basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
};
virtualHosts."minecraft.256.no" = { virtualHosts."minecraft.256.no" = {
locations."/" = { locations."/" = {
proxyWebsockets = true; proxyWebsockets = true;
proxyPass = "http://100.84.215.84:25565"; proxyPass = "100.84.215.84:25565";
extraConfig = '' extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -69,6 +75,5 @@ virtualHosts."minecraft.256.no" = {
}; };
}; };
} }

View File

@ -22,7 +22,7 @@
../../services/torrent.nix ../../services/torrent.nix
../../services/mc.nix ../../services/mc.nix
#../../services/stableDiffusion.nix #../../services/stableDiffusion.nix
#../../services/freshrrs.nix ../../services/freshrrs.nix
]; ];
# Bootloader. # Bootloader.

View File

@ -0,0 +1,31 @@
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
buildGoModule rec {
pname = "podgrab";
version = "unstable-2022-09-20";
src = fetchFromGitHub {
owner = "akhilrex";
repo = pname;
rev = "44e2b1c207288bb8a84ecb64424e0a501fa02510";
sha256 = "";
};
vendorHash = "sha256-xY9xNuJhkWPgtqA/FBVIp7GuWOv+3nrz6l3vaZVLlIE=";
postInstall = ''
mkdir -p $out/share/
cp -r $src/client $out/share/
cp -r $src/webassets $out/share/
'';
passthru.tests = { inherit (nixosTests) podgrab; };
meta = with lib; {
description = "A self-hosted podcast manager to download episodes as soon as they become live";
mainProgram = "podgrab";
homepage = "https://github.com/akhilrex/podgrab";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ambroisie ];
};
}