Merge pull request #596 from AppFlowy-IO/nginx-ai-config

fix: nginx optional resolution for ai service
This commit is contained in:
Zack 2024-06-03 11:03:51 +08:00 committed by GitHub
commit 45bfcc0a31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ http {
# AppFlowy AI
location /ai {
proxy_pass http://ai:5001;
set $ai ai;
proxy_pass http://$ai:5001;
proxy_set_header Host $host;
proxy_pass_request_headers on;
}