From f48fffd7c267725590cae4b9a2e1eef52f64386f Mon Sep 17 00:00:00 2001 From: Felipe Nakandakari <76239+fenak@users.noreply.github.com> Date: Tue, 28 Feb 2023 08:30:58 +1100 Subject: [PATCH] Add sample config for S3 without hard-coded access keys --- cfg/conf.sample.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cfg/conf.sample.php b/cfg/conf.sample.php index 7dca6d48..09bb9e19 100644 --- a/cfg/conf.sample.php +++ b/cfg/conf.sample.php @@ -230,6 +230,19 @@ dir = PATH "data" ;accesskey = "access key id" ;secretkey = "secret access key" +;[model] +; example of S3 configuration for AWS using its SDK default credential provider chain +; if relying on environment variables, the AWS SDK will look for the following: +; - AWS_ACCESS_KEY_ID +; - AWS_SECRET_ACCESS_KEY +; - AWS_SESSION_TOKEN (if needed) +; for more details, see https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials.html#default-credential-chain +;class = S3Storage +;[model_options] +;region = "eu-central-1" +;version = "latest" +;bucket = "my-bucket" + [yourls] ; When using YOURLS as a "urlshortener" config item: ; - By default, "urlshortener" will point to the YOURLS API URL, with or without