From 1ff5f9d7d2e4e4ae647c365a8241de8266fb43a8 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sat, 6 May 2023 04:07:06 +0200 Subject: [PATCH] --wip-- [skip ci] --- baldur/configuration.nix | 10 +++++++--- nixos_modules/nextcloud.nix | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/baldur/configuration.nix b/baldur/configuration.nix index e404b7e..d1c77cc 100644 --- a/baldur/configuration.nix +++ b/baldur/configuration.nix @@ -1,6 +1,4 @@ -{ pkgs, lib, ... }: -with lib; { - +{ pkgs, ... }: { boot = { growPartition = true; kernelParams = [ "console=ttyS0" "panic=1" "boot.panic_on_fail" ]; @@ -123,6 +121,12 @@ with lib; { proxyWebsockets = true; }; }; + "my-nextcloud.bertof.net" = ssl // { + locations."/" = { + proxyPass = "http://freya.local:80/"; + proxyWebsockets = true; + }; + }; }; }; openssh = { diff --git a/nixos_modules/nextcloud.nix b/nixos_modules/nextcloud.nix index 8339f96..ae534fe 100644 --- a/nixos_modules/nextcloud.nix +++ b/nixos_modules/nextcloud.nix @@ -16,6 +16,7 @@ hostName = "freya.local"; maxUploadSize = "32G"; + config.trustedProxies = [ "172.23.4.159" ]; config.adminpassFile = config.age.secrets.nextcloud_admin_secret.path; config.objectstore.s3 = { enable = true;