From b48a53e0d7bdcccb3699484f51199b25a767babf Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 28 Jun 2023 04:04:44 +0800 Subject: [PATCH] Create nezha.conf --- rewrite/nginx/nezha.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 rewrite/nginx/nezha.conf 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