fix(outline): Tweak stuff to make uploads work

Currently not working
This commit is contained in:
GaspardCulis 2024-11-03 22:14:02 +01:00
parent f00747b5f1
commit c57f4e71b8
2 changed files with 6 additions and 0 deletions

View file

@ -5,6 +5,11 @@
services.caddy.virtualHosts."s3.gasdev.fr *.s3.gasdev.fr" = { services.caddy.virtualHosts."s3.gasdev.fr *.s3.gasdev.fr" = {
logFormat = "output file ${config.services.caddy.logDir}/access-s3.gasdev.fr.log"; logFormat = "output file ${config.services.caddy.logDir}/access-s3.gasdev.fr.log";
extraConfig = '' extraConfig = ''
header {
?Access-Control-Allow-Headers *
?Access-Control-Allow-Methods *
?Access-Control-Allow-Origin *
}
reverse_proxy http://127.0.0.1:3900 reverse_proxy http://127.0.0.1:3900
''; '';
}; };

View file

@ -43,6 +43,7 @@
accessKey = "GKd60d7ca02de8478633442cf6"; accessKey = "GKd60d7ca02de8478633442cf6";
secretKeyFile = config.sops.secrets."outline/S3_SECRET_KEY".path; secretKeyFile = config.sops.secrets."outline/S3_SECRET_KEY".path;
region = "garage"; region = "garage";
forcePathStyle = false;
}; };
}; };