[英]App Service folder access in Azure with ftp
I have an app Service in Azure that contains folders and files.我在 Azure 中有一个包含文件夹和文件的应用程序服务。
Via FileZilla I can reach the file structure.通过 FileZilla 我可以到达文件结构。 I have a 3rd party vendor that needs to upload files to a specific folder.
我有一个需要将文件上传到特定文件夹的第 3 方供应商。
I can create an ftp with access to all content on the app service.我可以创建一个 ftp 来访问应用服务上的所有内容。 But is it possible to limit the users access to only one folder or a specific drive that my app service can reach?
但是是否可以限制用户只能访问我的应用程序服务可以访问的一个文件夹或特定驱动器? Ideally a subfolder under wwwroot\content.
最好是 wwwroot\content 下的子文件夹。
You can mount file share from Azure Storage to AppService via mapping and let the users access only files via File Shares not App Service.您可以通过映射将文件共享从 Azure 存储挂载到应用服务,并让用户仅通过文件共享而不是应用服务访问文件。
if your service plan is linux, you can log via ssh and set file/folder permissions manually.如果您的服务计划是 linux,您可以通过 ssh 登录并手动设置文件/文件夹权限。
But remember, the day when you make a new deploy/update in your application hosted on a cloud server, you probably will lose your files.但请记住,当您在托管在云服务器上的应用程序中进行新部署/更新的那一天,您可能会丢失文件。 You need to use a separated environment for acess/management of storage, that will be independent where you application is hosted and running.
您需要使用一个单独的环境来访问/管理存储,这将独立于您的应用程序的托管和运行位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.