AppFlowy-Cloud
AppFlowy-Cloud copied to clipboard
[Bug] import Notion data result a base url error for images which saved in notion server
Describe the bug I have imported notion data into AppFlowy, some images could not load correctly.
To Reproduce Steps to reproduce the behavior:
- self host appflowy-cloud
- login && import from notion
- view a page which has images(these images was saved in notion server)
- image load error.
Expected behavior base url is point to https://beta.appflowy.cloud instead, it should point to my server it was upload in my server, I can visit image after change the host to my server
Screenshots
location /api/import {
proxy_pass $appflowy_cloud_backend;
# Set headers
proxy_set_header X-Request-Id $request_id;
proxy_set_header Host $http_host;
proxy_set_header X-Host $scheme://$host;
# Timeouts
proxy_read_timeout 600s;
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
# Disable buffering for large file uploads
proxy_request_buffering off;
proxy_buffering off;
proxy_cache off;
client_max_body_size 2G;
}
add proxy_set_header X-Host $scheme://$host; to your nginx file