feat: add configurable S3 object storage
This commit is contained in:
45
docker/storage/nginx-files.conf.example
Normal file
45
docker/storage/nginx-files.conf.example
Normal file
@@ -0,0 +1,45 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name files.example.com;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name files.example.com;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/files.example.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/files.example.com/privkey.pem;
|
||||
|
||||
# Signed URLs contain credentials and signatures. Do not write the query
|
||||
# string to the standard access log.
|
||||
access_log off;
|
||||
|
||||
location / {
|
||||
limit_except GET HEAD {
|
||||
deny all;
|
||||
}
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header Connection "";
|
||||
proxy_request_buffering off;
|
||||
proxy_buffering off;
|
||||
proxy_max_temp_file_size 0;
|
||||
proxy_read_timeout 300s;
|
||||
proxy_send_timeout 300s;
|
||||
proxy_pass http://127.0.0.1:3900;
|
||||
}
|
||||
|
||||
add_header X-Content-Type-Options nosniff always;
|
||||
}
|
||||
Reference in New Issue
Block a user