From 9594e79f36dfde9b2270fbd4510d1ef9f67e9030 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Mon, 22 Jul 2024 19:26:55 +0200 Subject: [PATCH] Add CDN for serving files (SCW edge services) --- roles/music/templates/conf.env.j2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/music/templates/conf.env.j2 b/roles/music/templates/conf.env.j2 index 09fe825..61f03f5 100644 --- a/roles/music/templates/conf.env.j2 +++ b/roles/music/templates/conf.env.j2 @@ -27,12 +27,17 @@ NGINX_MAX_BODY_SIZE={{ nginx_max_body_size}} AWS_ACCESS_KEY_ID={{ scaleway_s3_id }} AWS_SECRET_ACCESS_KEY={{ scaleway_s3_key }} AWS_STORAGE_BUCKET_NAME=celiglyphe +# URL used to make changes AWS_S3_ENDPOINT_URL=https://s3.fr-par.scw.cloud +# Base URL used to construct listening URLs (acts like a CDN, see Scaleway Edge Services) +# ⚠️ Scheme is https by default + no trailing slash +AWS_S3_CUSTOM_DOMAIN=files.chosto.me AWS_S3_REGION_NAME=fr-par # My bucket is public AWS_QUERYSTRING_AUTH=false -PROXY_MEDIA=false AWS_DEFAULT_ACL=public-read +PROXY_MEDIA=false +EXTERNAL_MEDIA_PROXY_ENABLED=false THROTTLING_ENABLED=false EXTERNAL_REQUESTS_TIMEOUT=120