This commit is contained in:
liyong
2022-04-11 20:12:05 +08:00
committed by XiaoLi
parent 4f046044df
commit 9975a25ffe
+5 -1
View File
@@ -3,13 +3,17 @@ server {
# server_name $servername;
server_name "ai_api.alchemy-studio.cn";
listen 443 ssl;
listen 8090;
# listen 80;
client_max_body_size 10M;
# disable in local test env
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
location /api/v1/index {
return 200 "Ai api index";
}
location /api/v1/ai_api/ {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;