Remove fuuko proxy

It now is directly reachable (over IPv6).
This commit is contained in:
Simon Bruder 2024-08-27 10:42:22 +02:00
parent 959f7be3d0
commit 4e84140d53
Signed by: simon
GPG key ID: 347FF8699CDA0776
5 changed files with 6 additions and 32 deletions

View file

@ -8,6 +8,9 @@
sops.secrets.media-htpasswd.owner = "nginx";
services.nginx.virtualHosts."media.sbruder.de" = {
enableACME = true;
forceSSL = true;
basicAuthFile = config.sops.secrets.media-htpasswd.path;
root = "/data/media/";

View file

@ -18,6 +18,9 @@
];
services.nginx.virtualHosts."photoprism.sbruder.de" = {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
proxyPass = "http://127.0.0.1:${toString config.services.photoprism.port}";

View file

@ -15,11 +15,6 @@ in
fqdn = "torrent.sbruder.de";
};
services.nginx.virtualHosts."torrent.sbruder.de" = {
enableACME = false;
forceSSL = false;
};
networking.nftables.ruleset = ''
table inet qbittorrent {
chain output {

View file

@ -9,7 +9,6 @@
./hardware-configuration.nix
../../modules
./services/fuuko-proxy.nix
./services/media.nix
./services/murmur.nix
./services/restic.nix

View file

@ -1,26 +0,0 @@
# SPDX-FileCopyrightText: 2022-2023 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
{ lib, ... }:
{
services.nginx.virtualHosts = builtins.listToAttrs (map
(fqdn: lib.nameValuePair fqdn {
enableACME = true;
forceSSL = true;
locations."/" = {
extraConfig = ''
proxy_pass http://fuuko.vpn.sbruder.de/;
proxy_set_header Host ${fqdn};
'';
proxyWebsockets = true;
};
})
[
"media.sbruder.de"
"photoprism.sbruder.de"
"torrent.sbruder.de"
]);
}