Use real IP from forwarded IP

Signed-off-by: Emmy D'Anello <emmy@luemy.eu>
This commit is contained in:
Emmy D'Anello 2025-02-26 00:07:47 +01:00
parent 0440fc6144
commit e8454e2922
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,10 @@ server {
index index.html index.htm index.php;
error_page 404 /404.html;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
set_real_ip_from 0.0.0.0/0;
location /trigger-ci.json {
proxy_pass http://trigger-ci;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View File

@ -8,6 +8,10 @@ server {
root /var/www/html;
error_page 404 /404.html;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
set_real_ip_from 0.0.0.0/0;
location /trigger-ci.json {
proxy_pass http://trigger-ci;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;