proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Scheme $scheme; proxy_set_header X-Forwarded-Ssl $https; proxy_set_header X-Forwarded-Server $host; # Mainly for websocket support but shouldn't hurt to set it globally proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; # Set Authentication header, in addition to the header by ssowat. Note ssowat inject YNH_USER and here we inject Ynh-User which is different. proxy_set_header Authorization $http_authorization; proxy_set_header Ynh-User $http_ynh_user; proxy_set_header Ynh-User-Email $http_ynh_user_email; proxy_set_header Ynh-User-Fullname $http_ynh_user_fullname; proxy_set_header REMOTE_USER $http_ynh_user; proxy_set_header X-Forwarded-User $http_ynh_user;