You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
ELEWYG
6 months agoNew member | Level 2
How to use the nginx to browse the sare url
下面是dropbox的分享URL,直接访问是可以的
browse the dropbox share url indirect is okay:
https://dl.dropboxusercontent.com/scl/fi/e6mzswmo6nb1al3xo2q6h/20240531154801_MACID_42957_.png?rlkey=ov72d1b180j14ko6q8gammlet&dl=0
但通过我们自己服务器的NGINX代理访问,却只能访问到dropbox的404错误页,访问不到真实的分享文件
but browse the share url through my nginx server is 404 error,just like follow picture show,I don't know whereis error.
下面是通过访问我们自己服务器的代码来访问dropbox的url:
this is my URL through my nginx server to request:
我们的nginx设置如下:
my nginx server seting like this:
location /api/dropbox/api/{
client_max_body_size 100M;
add_header Access-Control-Allow-Origin *;
proxy_pass https://dl.dropboxusercontent.com/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
}
- Greg-DBDropbox Staff
It looks like you're not using the Dropbox API, but are trying to configure nginx. As nginx isn't made by Dropbox, we can't provide support for that. You may need to refer to the support resources for nginx for information on how to configure it.
- ЗдравкоLegendary | Level 20
ELEWYG wrote:...
proxy_set_header Host $host;
...Hi ELEWYG,
I'm a bit confused about the cited configuration line. 🤔 Why is it there and what is it supposed to do? 🤷 Did you try the same (resulted) request in your browser (the same request your server send to Dropbox) or in some other way? 🧐 Try catch the request (dump it somehow) and see what's there. 😉
Good luck and hope this helps.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,885 PostsLatest Activity: 12 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!