AppFlowy-Cloud icon indicating copy to clipboard operation
AppFlowy-Cloud copied to clipboard

[Bug] import Notion data result a base url error for images which saved in notion server

Open zhangzhenxi opened this issue 8 months ago • 1 comments

Describe the bug I have imported notion data into AppFlowy, some images could not load correctly.

To Reproduce Steps to reproduce the behavior:

  1. self host appflowy-cloud
  2. login && import from notion
  3. view a page which has images(these images was saved in notion server)
  4. 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

Image

Image

zhangzhenxi avatar Mar 31 '25 12:03 zhangzhenxi

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

JaysonAlbert avatar Jul 18 '25 09:07 JaysonAlbert