forked from SnapDrop/snapdrop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
29 lines (24 loc) · 1.05 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
server {
listen 80 http2;
listen 443 ssl http2;
server_name shario.example.com;
ssl_certificate /etc/nginx/ssl/shario.example.com.crt;
ssl_certificate_key /etc/nginx/ssl/shario/example.com.key;
root /usr/share/shario/client;
index index.html;
client_max_body_size 0;
location /server {
proxy_connect_timeout 300;
proxy_pass http://127.0.0.1:3000;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# If you intend to run the Shario server on the same network as where your users are,
# you should uncomment this and delete the previous line. You may want to choose a different
# value to "0.0.0.0", but ultimately as long as it's a valid IP address it doesn't matter what it is.
# References:
# https://github.com/RobinLinus/snapdrop/issues/266
# https://github.com/RobinLinus/snapdrop/issues/159
#proxy_set_header X-Forwarded-For "0.0.0.0";
}
}