server { listen 80 default_server; listen 443 ssl; root /app/snapdrop/client; index index.php index.html index.htm; server_name _; ssl_certificate /config/keys/cert.crt; ssl_certificate_key /config/keys/cert.key; client_max_body_size 0; # Uncomment the block below and update the "set_real_ip" with the address/range of your reverse proxy if you intend to expose Snapdrop to the internet #set_real_ip_from 127.0.0.1/32; #real_ip_header X-Forwarded-For; #real_ip_recursive on; location / { root /app/snapdrop/client; index index.html index.htm; } location /server { proxy_connect_timeout 300; proxy_pass http://localhost:3000; proxy_set_header Connection "upgrade"; proxy_set_header Upgrade $http_upgrade; proxy_set_header X-Forwarded-for $remote_addr; } }