Closed wyfang closed 1 year ago
This is likely caused by nginx misconfiguration.
Try adding the following properties to websocket endpoint (/api/nlog
):
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
Eg.
location /api/nlog {
proxy_pass http://127.0.0.1:1242;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
There should be a detailed guide on how to set up nginx with ASF on the wiki too.
Closed due to inactivity
Checklist
ASF version
Latest stable release
ASF-ui version
5f9969b
Bug description
My question is the same as this one:https://github.com/JustArchiNET/ASF-ui/issues/1567
But I tried to close Early Hints and Rocket Loader according to the reply to this question, including my attempt to bypass cloudflare. but I got a new error message:
Expected behavior
I exprcted that I can see the log
Actual behavior
Websocket error! Error code: 1006
Steps to reproduce
No response
Possible reason/solution
No response
Can you help us with this bug report?
Somehow, I can test and offer feedback, but can't code
Global ASF.json config file
No response
BotName.json config of all affected bot instances
No response
Additional info
This is my reverse proxy profile, I don't know if it has anything to do with this: