[GH-ISSUE #6385] [Bug] How to modify the domain name of uploaded images #2817

Closed
opened 2026-03-23 21:25:22 +00:00 by mirror · 2 comments
Owner

Originally created by @smartyhero on GitHub (Sep 23, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6385

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

Originally created by @smartyhero on GitHub (Sep 23, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6385 ### 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_
mirror 2026-03-23 21:25:22 +00:00
Author
Owner

@Xazin commented on GitHub (Sep 24, 2024):

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

<!-- gh-comment-id:2372033333 --> @Xazin commented on GitHub (Sep 24, 2024): 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
Author
Owner

@smartyhero commented on GitHub (Sep 25, 2024):

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

<!-- gh-comment-id:2373151531 --> @smartyhero commented on GitHub (Sep 25, 2024): The publish function of self-hosted appflowy also has a similar domain name problem. The domain name displayed after publish is appflowy.com <img width="438" alt="image" src="https://github.com/user-attachments/assets/e593927f-40dc-43ee-8089-c15e6ea24c29">
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2817
No description provided.