diff options
author | Matthew Gamble | 2021-03-26 00:13:00 +1100 |
---|---|---|
committer | Matthew Gamble | 2021-03-26 00:13:00 +1100 |
commit | 46ce0cec730099f9df08fbcb91da6b4041eff239 (patch) | |
tree | c82206042fec37179834cc5b1202b36e3e5c2760 /example-nginx.conf | |
download | aur-46ce0cec730099f9df08fbcb91da6b4041eff239.tar.gz |
Initial commit
Diffstat (limited to 'example-nginx.conf')
-rw-r--r-- | example-nginx.conf | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/example-nginx.conf b/example-nginx.conf new file mode 100644 index 000000000000..2baf96d0510d --- /dev/null +++ b/example-nginx.conf @@ -0,0 +1,22 @@ +server { + listen 80 http2; + listen 443 ssl http2; + + server_name snapdrop.example.com; + + ssl_certificate /etc/nginx/ssl/snapdrop.example.com.crt; + ssl_certificate_key /etc/nginx/ssl/snapdrop/example.com.key; + + root /usr/share/snapdrop/client; + index index.html; + + client_max_body_size 0; + + 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 $proxy_add_x_forwarded_for; + } +} |