From d9cdb86e8eb351c60b249c8aa51dbc23f2aac48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Sun, 28 Nov 2021 15:22:28 +0800 Subject: [PATCH] fix --- music-room-test.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music-room-test.conf b/music-room-test.conf index 970bc8f..a6e0396 100644 --- a/music-room-test.conf +++ b/music-room-test.conf @@ -45,7 +45,7 @@ server { # ➤ mkdir -p /usr/local/file_upload # ➤ sudo chown (whoami) /usr/local/file_upload set $tmp_file_dir "/usr/local/file_upload"; # 文件存储路径 - set $task_server "https://127.0.0.1:8080"; # task server host + set $task_server "http://127.0.0.1:8080"; # task server host set $htyuc "http://127.0.0.1:8088"; #htyuc host set $resty_loc "/usr/local/opt/openresty"; # MacOS @@ -53,7 +53,7 @@ server { location / { try_files $uri $uri/ /index.html; - proxy_set_header Host $servername; + proxy_set_header Host "test.localhost"; proxy_set_header X-Real-IP $remote_addr; # disable in local test env proxy_set_header X-Forwarded-Proto https;