nginx shenanigans

This commit is contained in:
xqtc161 2024-03-31 01:29:35 +01:00
parent 905652dd4a
commit 1b1893b267
4 changed files with 22 additions and 3 deletions

View file

@ -6,6 +6,9 @@
...
}: {
#nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"];
networking.hosts = {
"192.168.178.35" = [ "jellyfin.fritz.box" "grafana.fritz.box" ];
};
environment.systemPackages = with pkgs; [
xdg-desktop-portal-hyprland
xdg-desktop-portal

View file

@ -12,6 +12,7 @@
../../../common
inputs.nixos-hardware.nixosModules.common-cpu-intel
../../gc.nix
./jellyfin.nix
./monitoring.nix
];
@ -124,8 +125,8 @@
networking.wireguard.enable = true;
services.jellyfin.enable = true;
services.jellyfin.user = "xqtc";
# services.jellyfin.enable = true;
# services.jellyfin.user = "xqtc";
#services.slskd = {
# enable = true;
@ -146,6 +147,7 @@
enableSSHSupport = true;
};
services.nginx.enable = true;
# List services that you want to enable:
# Enable the OpenSSH daemon.

View file

@ -0,0 +1,14 @@
{config, pkgs, lib, ...}:
{
services.jellyfin.enable = true;
services.jellyfin.user = "xqtc";
services.nginx.virtualHosts."jellyfin.fritz.box" = {
locations."/" = {
extraConfig = ''
proxy_set_header Host $host;
'';
proxyPass = "http://127.0.0.1:8096";
proxyWebsockets = true;
};
};
}

View file

@ -7,6 +7,7 @@
services.grafana = {
enable = true;
settings.server = {
domain = "grafana.fritz.box";
port = 2342;
addr = "127.0.0.1";
};
@ -34,7 +35,6 @@
];
};
services.nginx.enable = true;
services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = {
locations."/" = {
extraConfig = ''