最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How do I serve content over the internet from a file share in an Azure storage account? - Stack Overflow

programmeradmin4浏览0评论

I've got a web app that I'm in the process of containerizing.

Mostly it seems straightforward now that I've got into the 'container' mindset. But I've got one catch. The app has to accept and retain uploaded media and media captured from URLs posted to the app.

I think the best approach is to do a file share mounted on, say, /var/staticcontent or some such so that the app can write the content and delete it as needed.

The problem I've got is trying to see clearly how I can serve those static files over the internet. Documentation for Azure Front Door and static hosting from the storage account doesn't seem to address this use case, or if it does, it's at a level I'm not grasping.

I've created a storage account and attached it to the container environment. I've mounted it to a container and done some preliminary attempts to set up a website for the storage account, but the files visible to the website seem to be in a different location than the file share.

I've got a web app that I'm in the process of containerizing.

Mostly it seems straightforward now that I've got into the 'container' mindset. But I've got one catch. The app has to accept and retain uploaded media and media captured from URLs posted to the app.

I think the best approach is to do a file share mounted on, say, /var/staticcontent or some such so that the app can write the content and delete it as needed.

The problem I've got is trying to see clearly how I can serve those static files over the internet. Documentation for Azure Front Door and static hosting from the storage account doesn't seem to address this use case, or if it does, it's at a level I'm not grasping.

I've created a storage account and attached it to the container environment. I've mounted it to a container and done some preliminary attempts to set up a website for the storage account, but the files visible to the website seem to be in a different location than the file share.

Share Improve this question asked Mar 17 at 7:26 Rich JensenRich Jensen 1011 silver badge1 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

you also have the option to only allow your application to have access in your file share and to serve files to outside simply read the bytes of the files and dump them to the client.

发布评论

评论列表(0)

  1. 暂无评论