Skip to content
Snippets Groups Projects
Commit 5874c123 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Set user IP in CM proxy (refs #26029).

parent e4a8416c
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,9 @@ server {
proxy_set_header Connection $connection_upgrade;
# change scheme of "Origin" to https
proxy_set_header Origin https://127.0.0.1:$1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass https://127.0.0.1:$1/$2$is_args$args;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment