32 lines
922 B
Text
32 lines
922 B
Text
|
|
# s3.silentmode.st -> pithos-hosted. Bodies stream straight through: uploads
|
||
|
|
# can be gigabytes, and SigV4 signs the exact bytes and headers.
|
||
|
|
server {
|
||
|
|
listen 443 ssl;
|
||
|
|
http2 on;
|
||
|
|
server_name s3.silentmode.st;
|
||
|
|
|
||
|
|
ssl_certificate /etc/letsencrypt/live/s3.silentmode.st/fullchain.pem;
|
||
|
|
ssl_certificate_key /etc/letsencrypt/live/s3.silentmode.st/privkey.pem;
|
||
|
|
|
||
|
|
client_max_body_size 5g;
|
||
|
|
proxy_request_buffering off;
|
||
|
|
proxy_buffering off;
|
||
|
|
proxy_read_timeout 1h;
|
||
|
|
proxy_send_timeout 1h;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://127.0.0.1:8720;
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
# s3d checks the signature against the Host the client signed.
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||
|
|
proxy_set_header Connection "";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name s3.silentmode.st;
|
||
|
|
return 301 https://$host$request_uri;
|
||
|
|
}
|