From 0f96719383a816156fd871ffcb9216ea48f8411b Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 28 Feb 2023 20:20:21 -0800 Subject: [PATCH] Dockerfile for proxying s3 resources with nginx --- docker/beta/Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docker/beta/Dockerfile b/docker/beta/Dockerfile index 1cce505..630b9b9 100644 --- a/docker/beta/Dockerfile +++ b/docker/beta/Dockerfile @@ -1,9 +1,8 @@ -FROM nginx -ARG SRC -RUN mkdir -p /var/www/blog.shockrah.xyz +FROM ghcr.io/nginxinc/nginx-s3-gateway/nginx-oss-s3-gateway:latest +ENV AWS_SIGS_VERSION=2 \ + S3_STYLE=virtual \ + PROVIDE_INDEX_PAGE=true \ + S3_SERVER_PORT=443 \ + S3_SERVER_PROTO=https \ + ALLOW_DIRECTORY_LIST=false -# TODO: let's not make this permanent -COPY shockrah.xyz /var/www/shockrah.xyz -COPY resume.shockrah.xyz /var/www/resume.shockrah.xyz - -COPY nginx.conf /etc/nginx/nginx.conf