DANGEROUSLY fix everything

This commit is contained in:
Nicolas Jeannerod 2024-09-04 18:30:55 +02:00
parent 9d32782452
commit bee71d541a
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8
2 changed files with 2 additions and 1 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."/storage/".proxyPass = "http://pixelfed.web.garage.localhost:3902/public/";
}; };
}; };
virtualisation.memorySize = 2048; virtualisation.memorySize = 2048;

View file

@ -36,6 +36,7 @@ in
# TODO: factor these out so we're only defining e.g. s3.garage.localhost and port 3900 in one place # TODO: factor these out so we're only defining e.g. s3.garage.localhost and port 3900 in one place
services.pixelfed.settings = { services.pixelfed.settings = {
DANGEROUSLY_SET_FILESYSTEM_DRIVER = "s3";
FILESYSTEM_CLOUD = "s3"; FILESYSTEM_CLOUD = "s3";
PF_ENABLE_CLOUD = true; PF_ENABLE_CLOUD = true;
AWS_ACCESS_KEY_ID = snakeoil_key.id; AWS_ACCESS_KEY_ID = snakeoil_key.id;