fix: nginx optional resolution for ai service

This commit is contained in:
Zack Fu Zi Xiang 2024-06-03 09:56:22 +08:00
parent b36715dc24
commit 49fe92c725
No known key found for this signature in database
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;
}