FILES_URL
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
For the FILES_URL environment variable, you can use any of the following formats:
FILES_URL=https://example.comFILES_URL=http://example.comFILES_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
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 theFILES_URLshould behttps://example.com. - if you are accessing the dify server from
http://example.com, the theFILES_URLshould behttp://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.