# DownloadMode defines how Athens behaves when a module@version# is not found in storage. There are 4 options:# 1. "sync" (default): download the module synchronously and# return the results to the client.# 2. "async": return 404, but asynchronously store the module# in the storage backend.# 3. "redirect": return a 301 redirect status to the client# with the base URL as the DownloadRedirectURL from below.# 4. "async_redirect": same as option number 3 but it will# asynchronously store the module to the backend.# 5. "none": return 404 if a module is not found and do nothing.# 6. "file:<path>": will point to an HCL file that specifies# any of the 5 options above based on different import paths.# 7. "custom:<base64-encoded-hcl>" is the same as option 6# but the file is fully encoded in the option. This is# useful for using an environment variable in serverless# deployments.# Env override: ATHENS_DOWNLOAD_MODE
DownloadMode ="none"# StorageType sets the type of storage backend the proxy will use.# Possible values are memory, disk, mongo, gcp, minio, s3, azureblob, external# Defaults to memory# Env override: ATHENS_STORAGE_TYPE
StorageType ="disk"[Storage][Storage.Disk]# RootPath is the Athens Disk Root folder# Env override: ATHENS_DISK_STORAGE_ROOT
RootPath ="/path/on/filesystem"