From c57f4e71b8763acfeee9bb242df211acface091d Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Sun, 3 Nov 2024 22:14:02 +0100 Subject: [PATCH] fix(outline): Tweak stuff to make uploads work Currently not working --- services/garage/default.nix | 5 +++++ services/outline/default.nix | 1 + 2 files changed, 6 insertions(+) diff --git a/services/garage/default.nix b/services/garage/default.nix index 771f0cb..f8e8de6 100644 --- a/services/garage/default.nix +++ b/services/garage/default.nix @@ -5,6 +5,11 @@ services.caddy.virtualHosts."s3.gasdev.fr *.s3.gasdev.fr" = { logFormat = "output file ${config.services.caddy.logDir}/access-s3.gasdev.fr.log"; extraConfig = '' + header { + ?Access-Control-Allow-Headers * + ?Access-Control-Allow-Methods * + ?Access-Control-Allow-Origin * + } reverse_proxy http://127.0.0.1:3900 ''; }; diff --git a/services/outline/default.nix b/services/outline/default.nix index 4a835b7..d9f770c 100644 --- a/services/outline/default.nix +++ b/services/outline/default.nix @@ -43,6 +43,7 @@ accessKey = "GKd60d7ca02de8478633442cf6"; secretKeyFile = config.sops.secrets."outline/S3_SECRET_KEY".path; region = "garage"; + forcePathStyle = false; }; };