esp32-cam-webserver
esp32-cam-webserver copied to clipboard
Headers too long error when using Apache proxy.
Also happens when I use a simple SSH tunnel, but NOT when i connect from my local network https://github.com/espressif/arduino-esp32/issues/2983 I'd like remote access working...
I have a similar problem. Accessing from within my network goes well, but when I try from outside using port forwarding... "headers too long..."
Idem with Nginx 'proxy'
This is irritating; I spent some time trying to resolve this both via apache configuration, and then by (temporarily) editing the esp32 toolchain to allocate 4x as much space for incoming headers. Neither of these had any effect, unfortunately.
Lack of time, and lack of need (this is nice to have, not essential, for me) mean I have not gone any further. Maybe my priority will change in the future, but for the present I wont do any more work on this unless I am very confident it will succeed.
Also note this comment: https://github.com/espressif/arduino-esp32/issues/2983#issuecomment-562304008
Same situation with traefik and file provider (to external server). Oddly, this works with postman and similar apps and it frequently loads when using http rather than https
also got an error using my tablet with LineageOS 15.1 browser. 'Header fields are too long for server to interpret'
Using Chrome browser on the same tablet worked.
There may be hope for the next esp-ide-core release: https://github.com/espressif/esp32-arduino-lib-builder/issues/52 https://github.com/espressif/arduino-esp32/issues/5969
Waiting for: https://github.com/espressif/arduino-esp32/pull/6174
For me on nginx this variant works
location /camera { proxy_pass http://1.2.3.4:80; rewrite ^/camera /(.*) /$1 break; proxy_set_header Cookie ""; } location /status { proxy_pass http://1.2.3.4:80; proxy_set_header Cookie ""; } But no controls are working