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 badge1 Answer
Reset to default 1you 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.