mirror of
https://github.com/adrlau/nix-dotfiles.git
synced 2024-12-22 18:57:29 +01:00
...
This commit is contained in:
parent
11b49a4360
commit
61df28d785
@ -49,25 +49,30 @@
|
||||
proxyPass = "http://100.84.215.84:4242";
|
||||
};
|
||||
basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
virtualHosts."minecraft.256.no" = {
|
||||
locations."/" = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://100.84.215.84:25565";
|
||||
extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
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" = {
|
||||
locations."/" = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "100.84.215.84:25565";
|
||||
extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
@ -22,7 +22,7 @@
|
||||
../../services/torrent.nix
|
||||
../../services/mc.nix
|
||||
#../../services/stableDiffusion.nix
|
||||
#../../services/freshrrs.nix
|
||||
../../services/freshrrs.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
31
packages/podgrab/default.nix
Normal file
31
packages/podgrab/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user