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"]; #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; [ environment.systemPackages = with pkgs; [
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
xdg-desktop-portal xdg-desktop-portal

View file

@ -12,6 +12,7 @@
../../../common ../../../common
inputs.nixos-hardware.nixosModules.common-cpu-intel inputs.nixos-hardware.nixosModules.common-cpu-intel
../../gc.nix ../../gc.nix
./jellyfin.nix
./monitoring.nix ./monitoring.nix
]; ];
@ -124,8 +125,8 @@
networking.wireguard.enable = true; networking.wireguard.enable = true;
services.jellyfin.enable = true; # services.jellyfin.enable = true;
services.jellyfin.user = "xqtc"; # services.jellyfin.user = "xqtc";
#services.slskd = { #services.slskd = {
# enable = true; # enable = true;
@ -146,6 +147,7 @@
enableSSHSupport = true; enableSSHSupport = true;
}; };
services.nginx.enable = true;
# List services that you want to enable: # List services that you want to enable:
# Enable the OpenSSH daemon. # 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 = { services.grafana = {
enable = true; enable = true;
settings.server = { settings.server = {
domain = "grafana.fritz.box";
port = 2342; port = 2342;
addr = "127.0.0.1"; addr = "127.0.0.1";
}; };
@ -34,7 +35,6 @@
]; ];
}; };
services.nginx.enable = true;
services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = { services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = {
locations."/" = { locations."/" = {
extraConfig = '' extraConfig = ''