nginx: allow underscores in headers

This commit is contained in:
missytake 2024-03-13 15:25:42 +01:00
parent a19709566a
commit d5c5fe3098

View file

@ -1,8 +1,9 @@
server { server {
server_name {{ domain }}; server_name {{ domain }};
client_max_body_size 512m; client_max_body_size 512m;
underscores_in_headers on;
location / { location / {
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;