Skip to content

Commit

Permalink
Clean up [upload] config doc
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Apr 1, 2020
1 parent 9dcd716 commit 21ffe5f
Showing 1 changed file with 32 additions and 26 deletions.
58 changes: 32 additions & 26 deletions config.toml.sample
Expand Up @@ -111,32 +111,38 @@ max_idle = 10
# Maximum concurrent connections to the SMTP server.
max_conns = 10

# Upload settings

[upload]
# Provider which will be used to host uploaded media. Bundled providers are "filesystem" and "s3".
# File storage backend. "filesystem" or "s3".
provider = "filesystem"

# S3 Provider settings
[upload.s3]
# (Optional). AWS Access Key and Secret Key for the user to access the bucket. Leaving it empty would default to use
# instance IAM role.
aws_access_key_id = ""
aws_secret_access_key = ""
# AWS Region where S3 bucket is hosted.
aws_default_region="ap-south-1"
# Specify bucket name.
bucket=""
# Path where the files will be stored inside bucket. Empty value ("") means the root of bucket.
bucket_path=""
# Bucket type can be "private" or "public".
bucket_type="public"
# (Optional) Specify TTL (in seconds) for the generated presigned URL. Expiry value is used only if the bucket is private.
expiry="86400"

# Filesystem provider settings
[upload.filesystem]
# Path to the uploads directory where media will be uploaded. Leaving it empty ("") means current working directory.
upload_path=""
# Upload URI that's visible to the outside world. The media uploaded to upload_path will be made available publicly
# under this URI, for instance, list.yoursite.com/uploads.
upload_uri = "/uploads"
[upload.s3]
# (Optional). AWS Access Key and Secret Key for the user to access the bucket.
# Leaving it empty would default to use instance IAM role.
aws_access_key_id = ""
aws_secret_access_key = ""

# AWS Region where S3 bucket is hosted.
aws_default_region="ap-south-1"

# Bucket name.
bucket=""

# Path where the files will be stored inside bucket. Empty for root.
bucket_path=""

# "private" or "public".
bucket_type="public"

# (Optional) Specify TTL (in seconds) for the generated presigned URL.
# Expiry value is used only if the bucket is private.
expiry="86400"

[upload.filesystem]
# Path to the uploads directory where media will be uploaded.
upload_path="./uploads"

# Upload URI that's visible to the outside world.
# The media uploaded to upload_path will be made available publicly
# under this URI, for instance, list.yoursite.com/uploads.
upload_uri = "/uploads"

0 comments on commit 21ffe5f

Please sign in to comment.