# 这个music-room小程序的配置本地测试目前用不上 server { # https://serverfault.com/questions/798734/use-variable-for-server-name-in-nginx# # server_name $servername; server_name "music-room.localhost"; listen 8088; client_max_body_size 10M; set $resty_loc "/usr/local/openresty"; location / { try_files $uri $uri/ /index.html; proxy_set_header Host "music-room.localhost"; proxy_set_header X-Real-IP $remote_addr; # disable in local test env proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Host $remote_addr; } root $resty_loc/nginx/html/music-room; index index.html; # # 公众号校验 # location /MP_verify_Jo6pKmy43wx7S5Sh.txt { # return 200 'Jo6pKmy43wx7S5Sh'; # } # # # 小程序业务域名校验 # location /Q25f8xC3Jo.txt { # return 200 '323072b225a694281cd23496fa6737ef'; # } }