dify icon indicating copy to clipboard operation
dify copied to clipboard

FILES_URL

Open asrguru20 opened this issue 8 months ago • 2 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Provide a description of requested docs changes

I am not sure what format should I use in the following environment variable for FILES_URL

FILES_URL=https://example.com or FILES_URL=http://example.com or FILES_URL=example.com

And Can I use the same domain I used for my self hosted dify web app access or I should create a separate subdomain for this

asrguru20 avatar Apr 28 '25 05:04 asrguru20

For the FILES_URL environment variable, you can use any of the following formats:

  • FILES_URL=https://example.com
  • FILES_URL=http://example.com
  • FILES_URL=example.com

You can use the same domain for your self-hosted Dify web app, or if you prefer, you can create a separate subdomain. If FILES_URL is left empty, it will default to the same domain as the application. Additionally, image preview URLs are signed and expire after 5 minutes to ensure secure access to file previews [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar Apr 28 '25 05:04 dosubot[bot]

Regarding FILES_URL, it depends on the hosting service's url. For example:

  • if you are accessing the dify server from https://example.com, the the FILES_URL should be https://example.com.
  • if you are accessing the dify server from http://example.com, the the FILES_URL should be http://example.com.

And Can I use the same domain I used for my self hosted dify web app access or I should create a separate subdomain for this

Yes, you can, however, we suggest using a different url https://upload.example.com instead of https://example.com like we did in our cloud service, we use https://upload.dify.ai.

crazywoola avatar Apr 28 '25 05:04 crazywoola