From 29c009f3bf9c2588f099f60586d23aaf3f86c48c Mon Sep 17 00:00:00 2001 From: qy117121 Date: Sat, 4 Feb 2023 20:29:38 +0800 Subject: [PATCH] add s3 --- nginx/{s3img.stpl => s3.stpl} | 4 ++-- nginx/{s3img.tpl => s3.tpl} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename nginx/{s3img.stpl => s3.stpl} (94%) rename nginx/{s3img.tpl => s3.tpl} (100%) diff --git a/nginx/s3img.stpl b/nginx/s3.stpl similarity index 94% rename from nginx/s3img.stpl rename to nginx/s3.stpl index fbb562e..375c3bb 100644 --- a/nginx/s3img.stpl +++ b/nginx/s3.stpl @@ -19,7 +19,7 @@ server { root /home/mastodon/public/system; - set $s3_backend 'https://img-s.184.im.s3.nl-ams.scw.cloud'; + set $s3_backend 'https://bucket-name.s3.nl-ams.scw.cloud'; keepalive_timeout 30; @@ -36,7 +36,7 @@ server { } #resolver 9.9.9.9; - proxy_set_header Host 'img-s.184.im.s3.nl-ams.scw.cloud'; + proxy_set_header Host 'bucket-name.s3.nl-ams.scw.cloud'; proxy_set_header Connection ''; proxy_set_header Authorization ''; proxy_hide_header Set-Cookie; diff --git a/nginx/s3img.tpl b/nginx/s3.tpl similarity index 100% rename from nginx/s3img.tpl rename to nginx/s3.tpl