Remove fuuko proxy
It now is directly reachable (over IPv6).
This commit is contained in:
parent
959f7be3d0
commit
4e84140d53
|
@ -8,6 +8,9 @@
|
||||||
sops.secrets.media-htpasswd.owner = "nginx";
|
sops.secrets.media-htpasswd.owner = "nginx";
|
||||||
|
|
||||||
services.nginx.virtualHosts."media.sbruder.de" = {
|
services.nginx.virtualHosts."media.sbruder.de" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
|
||||||
basicAuthFile = config.sops.secrets.media-htpasswd.path;
|
basicAuthFile = config.sops.secrets.media-htpasswd.path;
|
||||||
|
|
||||||
root = "/data/media/";
|
root = "/data/media/";
|
||||||
|
|
|
@ -18,6 +18,9 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
services.nginx.virtualHosts."photoprism.sbruder.de" = {
|
services.nginx.virtualHosts."photoprism.sbruder.de" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://127.0.0.1:${toString config.services.photoprism.port}";
|
proxyPass = "http://127.0.0.1:${toString config.services.photoprism.port}";
|
||||||
|
|
|
@ -15,11 +15,6 @@ in
|
||||||
fqdn = "torrent.sbruder.de";
|
fqdn = "torrent.sbruder.de";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."torrent.sbruder.de" = {
|
|
||||||
enableACME = false;
|
|
||||||
forceSSL = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.nftables.ruleset = ''
|
networking.nftables.ruleset = ''
|
||||||
table inet qbittorrent {
|
table inet qbittorrent {
|
||||||
chain output {
|
chain output {
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules
|
../../modules
|
||||||
|
|
||||||
./services/fuuko-proxy.nix
|
|
||||||
./services/media.nix
|
./services/media.nix
|
||||||
./services/murmur.nix
|
./services/murmur.nix
|
||||||
./services/restic.nix
|
./services/restic.nix
|
||||||
|
|
|
@ -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"
|
|
||||||
]);
|
|
||||||
}
|
|
Loading…
Reference in a new issue