Create nezha.conf

pull/420/head
midoks 2 years ago
parent 4701839c33
commit b48a53e0d7
  1. 15
      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/
Loading…
Cancel
Save