Proxy Garage backend

This commit is contained in:
Nicolas Jeannerod 2024-09-05 13:05:29 +02:00
parent afb8d56dd6
commit 1932a131e0
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@
# I feel like this should have an `enable` option and be configured via `services.nginx` rather than mirroring those options in services.pixelfed.nginx # I feel like this should have an `enable` option and be configured via `services.nginx` rather than mirroring those options in services.pixelfed.nginx
# TODO: If that indeed makes sense, upstream it. # TODO: If that indeed makes sense, upstream it.
nginx = { nginx = {
# locations."/storage/".proxyPass = "http://pixelfed.web.garage.localhost:3902/public/"; locations."/public/".proxyPass = "http://pixelfed.web.garage.localhost:3902/public/";
}; };
}; };
virtualisation.memorySize = 2048; virtualisation.memorySize = 2048;

View file

@ -42,7 +42,7 @@ in
AWS_ACCESS_KEY_ID = snakeoil_key.id; AWS_ACCESS_KEY_ID = snakeoil_key.id;
AWS_SECRET_ACCESS_KEY = snakeoil_key.secret; AWS_SECRET_ACCESS_KEY = snakeoil_key.secret;
AWS_DEFAULT_REGION = "garage"; AWS_DEFAULT_REGION = "garage";
AWS_URL = "http://pixelfed.s3.garage.localhost:3900"; AWS_URL = ""; ## Empty such that the URL is just relative to the pixelfed instance.
AWS_BUCKET = "pixelfed"; AWS_BUCKET = "pixelfed";
AWS_ENDPOINT = "http://s3.garage.localhost:3900"; AWS_ENDPOINT = "http://s3.garage.localhost:3900";
AWS_USE_PATH_STYLE_ENDPOINT = false; AWS_USE_PATH_STYLE_ENDPOINT = false;