This commit is contained in:
2023-01-08 00:03:18 +08:00
parent d1982e7cf3
commit bb1cad5711
3 changed files with 10 additions and 16 deletions
+3 -1
View File
@@ -4,6 +4,7 @@ server {
server_name "ai.localhost"; server_name "ai.localhost";
# listen 443 ssl; # listen 443 ssl;
# listen 80; # listen 80;
listen 8088;
client_max_body_size 10M; client_max_body_size 10M;
# disable in local test env # disable in local test env
@@ -12,7 +13,8 @@ server {
location / { location / {
try_files $uri $uri/ /index.html; 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; proxy_set_header X-Real-IP $remote_addr;
# disable in local test env # disable in local test env
# proxy_set_header X-Forwarded-Proto https; # proxy_set_header X-Forwarded-Proto https;
-1
View File
@@ -21,7 +21,6 @@ server {
root $resty_loc/nginx/html/music-room; root $resty_loc/nginx/html/music-room;
index index.html; index index.html;
# # 公众号校验 # # 公众号校验
# location /MP_verify_Jo6pKmy43wx7S5Sh.txt { # location /MP_verify_Jo6pKmy43wx7S5Sh.txt {
# return 200 'Jo6pKmy43wx7S5Sh'; # return 200 'Jo6pKmy43wx7S5Sh';
-7
View File
@@ -1,4 +1,3 @@
# put into /usr/local/etc/openresty/nginx.conf # put into /usr/local/etc/openresty/nginx.conf
#user nobody; #user nobody;
worker_processes 1; worker_processes 1;
@@ -9,12 +8,10 @@ error_log /usr/local/etc/openresty/logs/error.log debug;
#pid logs/nginx.pid; #pid logs/nginx.pid;
events { events {
worker_connections 1024; worker_connections 1024;
} }
http { http {
include mime.types; include mime.types;
default_type application/octet-stream; default_type application/octet-stream;
@@ -85,7 +82,6 @@ http {
include /usr/local/etc/openresty/conf.d/*.conf; include /usr/local/etc/openresty/conf.d/*.conf;
# another virtual host using mix of IP-, name-, and port-based configuration # another virtual host using mix of IP-, name-, and port-based configuration
# #
#server { #server {
@@ -99,7 +95,6 @@ http {
# } # }
#} #}
# HTTPS server # HTTPS server
# #
#server { #server {
@@ -120,6 +115,4 @@ http {
# index index.html index.htm; # index index.html index.htm;
# } # }
#} #}
} }