Skip to content
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

Adapted to reverse proxy like load balancer. #7

Merged
merged 3 commits into from
Feb 6, 2018

Conversation

torichanjp
Copy link
Contributor

ロードバランサ 配下の場合、REMOTE_ADDRがロードバランサ のIPになってしまうので、X-Forwarded-Forを取得しチェックするようにしてみました。

@torichanjp
Copy link
Contributor Author

自分のアプリでテストケース走らせると以下のWarningが出るので一旦取り下げます。すいません。
Notice: Notice (8): Undefined index: REMOTE_ADDR

@torichanjp torichanjp closed this Feb 2, 2018
@torichanjp torichanjp reopened this Feb 2, 2018
@torichanjp
Copy link
Contributor Author

warningが出ないように修正しました。

Copy link
Member

@kozo kozo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確認遅くなりました。
プルリクありがとうございます!
マージします!

@kozo kozo merged commit 765a071 into fusic:3.0 Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants