AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] How to modify the domain name of uploaded images

Open smartyhero opened this issue 1 year ago • 2 comments

Bug Description

Self-hosted appflowy I uploaded the image normally When I changed the domain name used by my self-hosted appflowy, how can I change the domain name of the original link for uploading the image?

How to Reproduce

Use a.com to upload images Change the domain name of the self-hosted appflowy to b.com How to make the uploaded images also use b.com

Expected Behavior

I can configure the domain name for uploading pictures

Operating System

mac

AppFlowy Version(s)

0.6.9

Screenshots

No response

Additional Context

No response

smartyhero avatar Sep 23 '24 06:09 smartyhero

This seems to be due to using an environment variable inside flowy-server crate, which means the base_url is always the same unless the application is built by the self-hoster with preset environment variables.

We should of course set the base url according to the inputted self-host url, we can instead default it to the environment variable if none provided. (eg. in a small locally cached sqlite table containing the configuration).

CC @appflowy

Xazin avatar Sep 24 '24 18:09 Xazin

The publish function of self-hosted appflowy also has a similar domain name problem. The domain name displayed after publish is appflowy.com image

smartyhero avatar Sep 25 '24 06:09 smartyhero