-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[review] メンテナンス画面判定にもrequest.remote_ipを利用するように #30
Conversation
lib/sg_fargate_rails/config.rb
Outdated
@@ -1,13 +1,15 @@ | |||
module SgFargateRails | |||
class Config | |||
attr_reader :proxy_ip_addresses | |||
attr_accessor :middleware_enabled_rails_envs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
決め打ちは何かと不便なので、デフォルトの挙動は基本そのままで設定可能としたけど、envを設定するのではなく有効無効を設定するだけで良さそうだったかも。
attr_accessor :middleware_enabled
def initialize
self.middleware_enabled = !Rails.env.development? && !Rails.env.test?
end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらに1票!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
設定見直してマージしておきます。 👌
lib/sg_fargate_rails/config.rb
Outdated
@@ -1,13 +1,15 @@ | |||
module SgFargateRails | |||
class Config | |||
attr_reader :proxy_ip_addresses | |||
attr_accessor :middleware_enabled_rails_envs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらに1票!
middleware_enabled
No description provided.