add s3 endpoint

merge-requests/2/head
Matthew 2021-07-06 01:56:14 -04:00
parent ac723a16b3
commit 89fc27c52b
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 19 additions and 0 deletions

View File

@ -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;
}
}