chore: try add nginx config

This commit is contained in:
Zack Fu Zi Xiang 2024-06-20 18:57:26 +08:00
parent 94af813b04
commit 0aa10d93c7
No known key found for this signature in database
1 changed files with 10 additions and 0 deletions

View File

@ -105,6 +105,16 @@ http {
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, PATCH' always;
add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, Accept, Client-Version' always;
add_header 'Access-Control-Max-Age' 3600 always;
location ~* ^/api/workspace/([a-zA-Z0-9_-]+)/publish$ {
set $appflowy_cloud appflowy_cloud;
proxy_pass http://$appflowy_cloud:8000;
proxy_http_version 1.1;
chunked_transfer_encoding on;
proxy_buffering off;
proxy_cache off;
}
}
# AppFlowy AI