Closed Ives-Natsume closed 2 months ago
two listen ports listen 80;
and listen 1002;
are specified,
and proxy_pass http://192.168.137.2:1002;
can cause infinite loop for listen 1002;
. is it not http://localhost:8812/
?
server_name 192.168.137.2;
Perhaps this does not work. If you suspect that is the cause, try server_name _ ;
nginx on https://waifu2x.net/
I just add
keepalive_timeout 65;
client_max_body_size 5M;
to /etc/nginx.conf
http {}
context.
server config is almost the same as https://github.com/nagadomi/nunif/blob/master/waifu2x/web/appendix/waifu2x.nginx.conf
Hi, thank you for your advise. I'm freshman in network but fortunately it finally worked. I have to set longer survival time because waifu2x takes longer time to run the task on my Pi.
And I've also deployed unlimited version on Nginx. Great thanks to your work!
Wish you a nice day :)
Hardware: Raspberry Pi 5 8GB RAM OS: Ubuntu server 20.04 LTS
python -m waifu2x.web --bind-addr 0.0.0.0 --port 8812
works fine on my machine.After successfully loaded main page on my Nginx server, I got
400 Bad Request
when I tried to upscale the pic:And the
error.log
was clean. I have tried to enable larger size of client header buffers for the page, but it still didn't work.Here is my page configuration file: