Skip to content

Allow using s3 storage when self_hosted=true#1458

Open
JustinLex wants to merge 1 commit intoFreika:devfrom
JustinLex:master
Open

Allow using s3 storage when self_hosted=true#1458
JustinLex wants to merge 1 commit intoFreika:devfrom
JustinLex:master

Conversation

@JustinLex
Copy link
Copy Markdown

Hi! Thank you for the great software.

I run kubernetes at a large scale in my homelab and I prefer to use s3 object storage whenever possible instead of volumes. I saw that Dawarich supports s3 storage, but only when running as a SaaS (self_hosted=false). I have tested out the s3 support in my homelab and it seems to work well, so I would like the ability to use s3 storage without losing the features that self_hosted=true gives me.

This pull request adds the ability to set the STORAGE_BACKEND, to enable s3 storage, independent of SELF_HOSTED.

I have never coded in ruby before, so please let me know if my code has any mistakes.

@Freika Freika changed the base branch from master to dev February 25, 2026 22:45
config.active_storage.service = ENV.fetch('STORAGE_BACKEND', :local)
# Store uploaded files either on the local file system or in S3-compatible object storage
# (see config/storage.yml for options).
config.active_storage.service = ENV.fetch('STORAGE_BACKEND', local)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be :local, not local, the : sign is important. Please replace here and in the production file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants