summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-11-29 11:09:36 +0000
committerPeter Powell <petpow@saberuk.com>2019-11-29 11:09:36 +0000
commitafb5972ab54d64f8c4e7b09962fb2088e427920b (patch)
tree303893280b4421a64ca7cdae9e44d6859076cbd0 /docs
parentbb1f892f68cb70537b224bca85cc40f1ed23017d (diff)
WebSocket: replace the behindproxy switch with a proxy IP list.
Diffstat (limited to 'docs')
-rw-r--r--docs/conf/modules.conf.example8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/conf/modules.conf.example b/docs/conf/modules.conf.example
index 9cb78daee..cee785436 100644
--- a/docs/conf/modules.conf.example
+++ b/docs/conf/modules.conf.example
@@ -2307,9 +2307,9 @@
# Requires SHA-1 hash support available in the sha1 module.
#<module name="websocket">
#
-# behindproxy: Whether the server is behind a proxy that sends the
-# X-Real-IP or X-Forwarded-For headers. If enabled the
-# server will use the IP address specified by those HTTP
+# proxyranges: A space-delimited list of glob or CIDR matches to trust
+# the X-Real-IP or X-Forwarded-For headers from. If enabled
+# the server will use the IP address specified by those HTTP
# headers. You should NOT enable this unless you are using
# a HTTP proxy like nginx as it will allow IP spoofing.
# sendastext: Whether to re-encode messages as UTF-8 before sending to
@@ -2317,7 +2317,7 @@
# protocol requires all text frames to be sent as UTF-8.
# If you do not have this enabled messages will be sent as
# binary frames instead.
-#<websocket behindproxy="no"
+#<websocket proxyranges="192.0.2.0/24 198.51.100.*"
# sendastext="yes">
#
# If you use the websocket module you MUST specify one or more origins