update
This commit is contained in:
@@ -3,13 +3,17 @@ server {
|
|||||||
# server_name $servername;
|
# server_name $servername;
|
||||||
server_name "ai_api.alchemy-studio.cn";
|
server_name "ai_api.alchemy-studio.cn";
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
listen 8090;
|
# listen 80;
|
||||||
client_max_body_size 10M;
|
client_max_body_size 10M;
|
||||||
|
|
||||||
# disable in local test env
|
# disable in local test env
|
||||||
ssl_certificate /etc/letsencrypt/live/alchemy-studio.cn/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/letsencrypt/live/alchemy-studio.cn/fullchain.pem; # managed by Certbot
|
||||||
ssl_certificate_key /etc/letsencrypt/live/alchemy-studio.cn/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/letsencrypt/live/alchemy-studio.cn/privkey.pem; # managed by Certbot
|
||||||
|
|
||||||
|
location /api/v1/index {
|
||||||
|
return 200 "Ai api index";
|
||||||
|
}
|
||||||
|
|
||||||
location /api/v1/ai_api/ {
|
location /api/v1/ai_api/ {
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
add_header Access-Control-Allow-Origin $http_origin always;
|
||||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
|
||||||
|
|||||||
Reference in New Issue
Block a user