Skip to content

Commit b95ecb4

Browse files
authored
Merge branch 'main' into tika-container
2 parents 84d1359 + 7d327a2 commit b95ecb4

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.env.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ SOLR_URL=http://solr:8983/solr/enju_leaf_${RAILS_ENV}
1313

1414
TIKA_URL=http://tika:9998
1515

16+
MINIO_ROOT_USER=enju
17+
MINIO_ROOT_PASSWORD=password
18+
1619
ENJU_LEAF_BIND_ADDRESS=127.0.0.1
1720
ENJU_LEAF_BASE_URL=http://localhost:8080
1821
ENJU_LEAF_DEFAULT_LOCALE=ja

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
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

config/storage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ minio:
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

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)