Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for accepting the Proxy Protocol#1487

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jkbys wants to merge1 commit intonginx-proxy:main
base:main
Choose a base branch
Loading
fromjkbys:accept-proxy-protocol

Conversation

jkbys
Copy link

If set env as below:

ACCEPT_PROXY_PROTOCOL=true

"proxy_protocol" parameters are added to all listen directives in defaults.conf like as below:

listen 80 proxy_protocol;
listen 443 ssl http2 proxy_protocol;

Additinally, if set env as bellow:

ACCEPT_PROXY_PROTOCOL=trueSET_REAL_IP_FROM=172.16.0.0/12,192.168.0.0/16

"set_real_ip_from" and "real_ip_header" directives are added like as below:

set_real_ip_from 172.16.0.0/12;set_real_ip_from 192.168.0.0/16;real_ip_header proxy_protocol;

These lines are added to above of "log_format vhost" line, so the client IP address received from the proxy protocol is logged.

polarathene reacted with eyes emoji
@buchdagbuchdag added status/pr-needs-testsThis PR needs new or additional test(s) status/pr-needs-docsThis PR needs new or additional documentation type/featPR for a new feature labelsDec 7, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
status/pr-needs-docsThis PR needs new or additional documentationstatus/pr-needs-testsThis PR needs new or additional test(s)type/featPR for a new feature
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jkbys@buchdag

[8]ページ先頭

©2009-2025 Movatter.jp