Skip to content

Add option to configure NGINX real ip #185

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

Merged
merged 1 commit into from
May 12, 2025
Merged

Add option to configure NGINX real ip #185

merged 1 commit into from
May 12, 2025

Conversation

Kevinjil
Copy link
Contributor

In our setup, we need to configure the proxy for IP autologin.

@vmcj As this is only relevant for domserver, I suggest adding a new group_vars file instead of cluttering all. What do you think?

@Kevinjil Kevinjil requested a review from vmcj May 10, 2025 13:41
Copy link
Member

@vmcj vmcj left a comment

Choose a reason for hiding this comment

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

I assume you tested it, it is a bit specific for one contest but good to document that specific use case.

@@ -69,5 +69,10 @@ add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag "none" always;

{% if NGINX_REAL_IP_FROM is defined %}
Copy link
Member

Choose a reason for hiding this comment

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

This is the name of the solution, not of the feature.

I propose to call it something like FRONT_REVERSE_PROXY so people know when to set this.

@Kevinjil Kevinjil merged commit 2570846 into main May 12, 2025
4 checks passed
@Kevinjil Kevinjil deleted the nginx-real-ip branch May 12, 2025 19:11
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