From b7d17a01730a65eadd42c75bfacdda668a1b6c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Mon, 15 Jul 2024 12:50:49 -0300 Subject: [PATCH] invidious: fix conflic with forgejo port --- hosts/phantom/forgejo.nix | 3 --- hosts/phantom/invidious.nix | 10 +--------- hosts/phantom/nginx.nix | 1 + 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/hosts/phantom/forgejo.nix b/hosts/phantom/forgejo.nix index eefb003..cd95461 100644 --- a/hosts/phantom/forgejo.nix +++ b/hosts/phantom/forgejo.nix @@ -13,9 +13,6 @@ in virtualHosts.${cfg.settings.server.DOMAIN} = { forceSSL = true; enableACME = true; - extraConfig = '' - client_max_body_size 512M; - ''; locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}"; }; }; diff --git a/hosts/phantom/invidious.nix b/hosts/phantom/invidious.nix index 739d9ae..8c1e0f6 100644 --- a/hosts/phantom/invidious.nix +++ b/hosts/phantom/invidious.nix @@ -1,20 +1,12 @@ -{ config, ... }: { services.invidious = { enable = true; domain = "invidious.lelgenio.com"; nginx.enable = true; + port = 10601; settings.db = { user = "invidious"; dbname = "invidious"; }; }; - - services.nginx = { - clientMaxBodySize = "100m"; - virtualHosts.${config.services.invidious.domain} = { - enableACME = true; - forceSSL = true; - }; - }; } diff --git a/hosts/phantom/nginx.nix b/hosts/phantom/nginx.nix index 0153fa6..bfff32c 100644 --- a/hosts/phantom/nginx.nix +++ b/hosts/phantom/nginx.nix @@ -11,6 +11,7 @@ recommendedTlsSettings = true; recommendedOptimisation = true; recommendedGzipSettings = true; + clientMaxBodySize = "512M"; }; # Redirect *lelgenio.xyz -> *lelgenio.com