location / { client_max_body_size 100m; proxy_pass http://localhost:5041/; proxy_redirect off; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_cookie_path / "/; Secure; HttpOnly; SameSite=lax"; } if ($badagent) { return 403; }