Skip to content

Commit

Permalink
Trust proxies in local IPs
Browse files Browse the repository at this point in the history
This allows CachetHQ to be served behind proxies
running in the local network.
  • Loading branch information
vitorbaptista committed Aug 25, 2017
1 parent 613b744 commit d1813df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/trustedproxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
| within TrustedProxy to trust any proxy; a requirement when you cannot
| know the address of your proxy (e.g. if using Rackspace balancers).
|
| By default, we are trusting CloudFlare only.
| By default, we are trusting local IPs and CloudFlare only.
|
*/

Expand All @@ -50,6 +50,12 @@
'2803:f800::/32',
'2c0f:f248::/32',
'2a06:98c0::/29',

// Local IPs
'10.0.0.0/8',
'172.16.0.0/12',
'192.168.0.0/16',
'fc00::/7',
],

/*
Expand Down

0 comments on commit d1813df

Please sign in to comment.