server { listen 443 ssl; listen [::]:443 ssl; root /var/www/html; index index.html; server_name my.domain.com; ssl_certificate /etc/letsencrypt/live/my.domain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/my.domain.com/privkey.pem; include /etc/nginx/snippets/ssl_options.conf; # Configure maximum picture size # Note that Diaspora has a client side check set at 4M client_max_body_size 5M; client_body_buffer_size 256K; sendfile on; send_timeout 600s; location / { proxy_pass http://192.168.2.1/; proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; proxy_buffering on; proxy_buffers 12 12k; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Port 443; proxy_set_header Host $host; } }