File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ SOLR_URL=http://solr:8983/solr/enju_leaf_${RAILS_ENV}
1313
1414TIKA_URL = http://tika:9998
1515
16+ MINIO_ROOT_USER = enju
17+ MINIO_ROOT_PASSWORD = password
18+
1619ENJU_LEAF_BIND_ADDRESS = 127.0.0.1
1720ENJU_LEAF_BASE_URL = http://localhost:8080
1821ENJU_LEAF_DEFAULT_LOCALE = ja
Original file line number Diff line number Diff line change 3838 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
3939
4040 # Store uploaded files on the local file system (see config/storage.yml for options).
41- config . active_storage . service = :local
41+ config . active_storage . service = :minio
4242
4343 # Mount Action Cable outside main process or domain.
4444 # config.action_cable.mount_path = nil
Original file line number Diff line number Diff line change 1111 access_key_id : <%= ENV['MINIO_ROOT_USER'] || Rails.application.credentials.dig(:minio, :access_key_id) %>
1212 secret_access_key : <%= ENV['MINIO_ROOT_PASSWORD'] || Rails.application.credentials.dig(:minio, :secret_access_key) %>
1313 region : us-east-1
14- bucket : <%= ENV['ENJU_LEAF_STORAGE_BUCKET'] || 'enju-leaf' %>-<%= Rails.env %>
14+ bucket : <%= ENV['ENJU_LEAF_STORAGE_BUCKET'] %>-<%= Rails.env %>
1515 force_path_style : true
1616 endpoint : <%= ENV['ENJU_LEAF_STORAGE_ENDPOINT'] || 'http://minio:9000' %>
1717
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ services:
115115 volumes :
116116 - minio:/data
117117 entrypoint :
118- /bin/sh -c "mkdir -p /data/${ENJU_LEAF_STORAGE_BUCKET} && minio server /data --console-address \":9001\""
118+ /bin/sh -c "mkdir -p /data/${ENJU_LEAF_STORAGE_BUCKET}-${RAILS_ENV} && minio server /data --console-address \":9001\""
119119 expose :
120120 - 9000
121121 - 9001
You can’t perform that action at this time.
0 commit comments