Hi,
I access my PVE behind a reverse proxy. here is the conf
When someone authenticates, the event is reported with the internal natted ip of the reverse proxy. How to change it to let reveal the real IP.
In the logs of the reverse proxy, this is the real IP that is showed.
Thank's
I access my PVE behind a reverse proxy. here is the conf
NGINX:
server {
listen 80;
server_name myfqdn;
set $primary_domain myfqdn;
if ($host != $primary_domain) {
rewrite ^ $scheme://$primary_domain permanent;
}
location / {
return 301 https://$server_name$request_uri;
}
}
server {
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
server_name myfqdn;
set $primary_domain myfqdn;
if ($host != $primary_domain) {
rewrite ^ $scheme://$primary_domain permanent;
}
proxy_redirect off;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_buffering off;
client_max_body_size 0;
proxy_connect_timeout 3600s;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
send_timeout 3600s;
proxy_pass https://internalIP:8006/;
}
}
When someone authenticates, the event is reported with the internal natted ip of the reverse proxy. How to change it to let reveal the real IP.
In the logs of the reverse proxy, this is the real IP that is showed.
Thank's