Allow custom path for ActiveStorage local/disk backend

This commit is contained in:
Râu Cao 2024-02-08 12:59:37 +01:00
parent 70ac3b0a70
commit 84e915ece9
Signed by: raucao
GPG Key ID: 37036C356E56CC51
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
local: local:
service: Disk service: Disk
root: <%= Rails.root.join("storage") %> root: <%= ENV["ACTIVE_STORAGE_PATH"] || Rails.root.join("storage") %>
test: test:
service: Disk service: Disk

View File

@ -42,6 +42,7 @@ services:
LDAP_ADMIN_PASSWORD: passthebutter LDAP_ADMIN_PASSWORD: passthebutter
LDAP_USE_TLS: "false" LDAP_USE_TLS: "false"
REDIS_URL: redis://redis:6379/0 REDIS_URL: redis://redis:6379/0
ACTIVE_STORAGE_PATH: "/akkounts/tmp/attachments"
RS_REDIS_URL: redis://redis:6379/1 RS_REDIS_URL: redis://redis:6379/1
RS_STORAGE_URL: "http://localhost:4567" RS_STORAGE_URL: "http://localhost:4567"
S3_ENABLED: false S3_ENABLED: false