fix
This commit is contained in:
@@ -4,6 +4,7 @@ server {
|
||||
server_name "ai.localhost";
|
||||
# listen 443 ssl;
|
||||
# listen 80;
|
||||
listen 8088;
|
||||
client_max_body_size 10M;
|
||||
|
||||
# disable in local test env
|
||||
@@ -12,7 +13,8 @@ server {
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
proxy_set_header Host "ai.alchemy-studio.cn";
|
||||
# proxy_set_header Host "ai.alchemy-studio.cn";
|
||||
proxy_set_header Host "ai.localhost";
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
# disable in local test env
|
||||
# proxy_set_header X-Forwarded-Proto https;
|
||||
|
||||
@@ -21,7 +21,6 @@ server {
|
||||
root $resty_loc/nginx/html/music-room;
|
||||
index index.html;
|
||||
|
||||
|
||||
# # 公众号校验
|
||||
# location /MP_verify_Jo6pKmy43wx7S5Sh.txt {
|
||||
# return 200 'Jo6pKmy43wx7S5Sh';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
# put into /usr/local/etc/openresty/nginx.conf
|
||||
#user nobody;
|
||||
worker_processes 1;
|
||||
@@ -9,12 +8,10 @@ error_log /usr/local/etc/openresty/logs/error.log debug;
|
||||
|
||||
#pid logs/nginx.pid;
|
||||
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
@@ -85,7 +82,6 @@ http {
|
||||
|
||||
include /usr/local/etc/openresty/conf.d/*.conf;
|
||||
|
||||
|
||||
# another virtual host using mix of IP-, name-, and port-based configuration
|
||||
#
|
||||
#server {
|
||||
@@ -99,7 +95,6 @@ http {
|
||||
# }
|
||||
#}
|
||||
|
||||
|
||||
# HTTPS server
|
||||
#
|
||||
#server {
|
||||
@@ -120,6 +115,4 @@ http {
|
||||
# index index.html index.htm;
|
||||
# }
|
||||
#}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user