代码拉取完成,页面将自动刷新
azblob cache is an abstraction on top of Azure Blob Storage which implements the tegola cache interface. To use it, add the following minimum config to your tegola config file:
[cache]
type="azblob"
container_url="https://your-account.blob.core.windows.net/container-name"
az_account_name="your-account-name"
az_shared_key="your-shared-key
The azblob config supports the following properties:
container_url
(string): [Required] the name of the Azure container to use.basepath
(string): [Optional] a path prefix added to all cache operations inside of the Azure container. helpful so a bucket does not need to be dedicated to only this cache.az_account_name
(string): [Optional] the storage account to use. az_shared_key
must be specified with this property. If this is not set, Tegola will attempt an anonymous connection (requires a public blob conatiner) and treat the cache as read only.az_shared_key
(string): [Optional] the storage account key to use.max_zoom
(int): [Optional] the max zoom the cache should cache to. After this zoom, Set() calls will return before doing work.read_only
(bool): [Optional] Tegola will not write cache missed tiles into the cache. This setting is implicitly set to true
if no account credentials are given.Testing is designed to work against a live Azure blob storage account. To run the azblob cache tests, the following environment variables need to be set:
$ export RUN_AZBLOB_TESTS=yes
$ export AZ_CONTAINER_URL='https://your-account.blob.core.windows.net/container-name'
$ export AZ_ACCOUNT_NAME='your-account'
$ export AZ_SHARED_KEY='your-key'
Due to the nature of azblob storage, the first 8 bytes of every cached file is a big-endian binary uint denoting the actual length of the tile.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。