From 89fc27c52b95ed43059564d497c033cecce13c04 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 6 Jul 2021 01:56:14 -0400 Subject: [PATCH] add s3 endpoint --- Nginx/Server Blocks/s3.libraryofcode.org.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Nginx/Server Blocks/s3.libraryofcode.org.conf diff --git a/Nginx/Server Blocks/s3.libraryofcode.org.conf b/Nginx/Server Blocks/s3.libraryofcode.org.conf new file mode 100644 index 0000000..01a6c61 --- /dev/null +++ b/Nginx/Server Blocks/s3.libraryofcode.org.conf @@ -0,0 +1,19 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name s3.libraryofcode.org; + + ssl_certificate /etc/nginx/ssl/org.chain.crt; + ssl_certificate_key /etc/nginx/ssl/org.key.pem; + + location / { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Frame-Options SAMEORIGIN; + proxy_pass http://localhost:9000; + proxy_read_timeout 90; + proxy_redirect http://localhost:9000 https://s3.libraryofcode.org; + } +}