Files
yunohost/conf/nginx/proxy_params_with_auth
machine-a-tsoins edb4c397df
Some checks failed
Check for new n releases / updater (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
🍽 Fork YunoHost — snapshot mangé par la machine à tsoins
Upstream: https://github.com/YunoHost/yunohost @ 3a5f8bac8301c450897b96cbd43a4c7d3ba750fb
But (José) : transformer tout le code en bions + ploxions du xerboxion.
La carte de digestion vit au labo : /yunohost-digest.json
2026-07-03 17:20:06 +00:00

23 lines
1.1 KiB
Plaintext

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;