diff --git a/rewrite/nginx/nezha.conf b/rewrite/nginx/nezha.conf new file mode 100644 index 000000000..fe3631d7a --- /dev/null +++ b/rewrite/nginx/nezha.conf @@ -0,0 +1,15 @@ +#PROXY-START/ +# root /www/server/nezha/dashboard/resource; +location / { + proxy_pass http://127.0.0.1:9527; + proxy_set_header Host $http_host; + proxy_set_header Upgrade $http_upgrade; +} +location ~ ^/(ws|terminal/.+)$ { + proxy_pass http://127.0.0.1:9527; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $http_host; +} +#PROXY-END/ \ No newline at end of file