Skip to content

Commit 041b33b

Browse files
redis の SSL に関する設定を追加
1 parent 384cc8c commit 041b33b

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

.docker/docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
POSTGRES_USER: postgres
99
volumes:
1010
- ./postgres/data:/var/lib/postgresql/data
11+
platform: linux/amd64
1112
redis:
1213
image: redis:latest
1314
ports:

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ group :development do
8787
gem 'bcrypt', '~> 3.1.7'
8888
gem 'bcrypt_pbkdf'
8989
gem 'ed25519'
90+
gem 'better_errors'
9091

9192
# gem 'capistrano', require: false
9293
# gem 'capistrano-rails', require: false

Gemfile.lock

+6
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ GEM
8181
activesupport (>= 3.0.0)
8282
bcrypt (3.1.18)
8383
bcrypt_pbkdf (1.1.0)
84+
better_errors (2.10.1)
85+
erubi (>= 1.0.0)
86+
rack (>= 0.9.0)
87+
rouge (>= 1.0.0)
8488
bindex (0.8.1)
8589
bootsnap (1.16.0)
8690
msgpack (~> 1.2)
@@ -346,6 +350,7 @@ GEM
346350
rexml (3.2.5)
347351
rmagick (5.2.0)
348352
pkg-config (~> 1.4)
353+
rouge (4.1.2)
349354
ruby-vips (2.1.4)
350355
ffi (~> 1.12)
351356
ruby2_keywords (0.0.5)
@@ -436,6 +441,7 @@ PLATFORMS
436441
DEPENDENCIES
437442
bcrypt (~> 3.1.7)
438443
bcrypt_pbkdf
444+
better_errors
439445
bootsnap
440446
bulma-rails (= 0.7.4)
441447
byebug

config/initializers/redis.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$redis = Redis.new(url: ENV['REDIS_URL'], ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE })

config/initializers/session_store.rb

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Rechord::Application.config.session_store :redis_store,
2-
servers: ENV['REDIS_URL'],
3-
expire_after: 20.years,
4-
key: "_#{Rails.application.class.module_parent_name.downcase}_session",
5-
threadsafe: false
2+
servers: ENV['REDIS_URL'],
3+
expire_after: 20.years,
4+
key: "_#{Rails.application.class.module_parent_name.downcase}_session",
5+
threadsafe: false,
6+
ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }

0 commit comments

Comments
 (0)