summarylogtreecommitdiffstats
path: root/example-nginx.conf
diff options
context:
space:
mode:
authorMatthew Gamble2021-03-26 18:42:34 +1100
committerMatthew Gamble2021-03-26 18:42:34 +1100
commit3800cbd4b63d6b89c739d8cf839b3e4713b7bb41 (patch)
tree769fb0756fed5912bb4befc5db091b9e5d58c89e /example-nginx.conf
parent8c90b540d6f55654c80df6fb867b4f382ea3b455 (diff)
downloadaur-3800cbd4b63d6b89c739d8cf839b3e4713b7bb41.tar.gz
Add systemd service, adjust nginx config
Diffstat (limited to 'example-nginx.conf')
-rw-r--r--example-nginx.conf9
1 files changed, 8 insertions, 1 deletions
diff --git a/example-nginx.conf b/example-nginx.conf
index 7e36056b0a25..cab7d8dfb47e 100644
--- a/example-nginx.conf
+++ b/example-nginx.conf
@@ -17,6 +17,13 @@ server {
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;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ # If you intend to run the Snapdrop 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";
}
}