This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Browser fingerprinting is a technique to "mark" anonymous users using JS | |
// (or other things). To build an "identity" of sorts the browser is queried | |
// for a list of its plugins, the screen size and several other things, then | |
// hashes them. The idea is that these bits of information produce an unique | |
// "fingerprint" of sorts; the more elaborate the list of data points is, the | |
// more unique this fingerprint becomes. And you wouldn't even need to set a | |
// cookie to recognize this user when she visits again. | |
// | |
// For more information on this topic consult | |
// [Ars Technica](http://arstechnica.com/tech-policy/news/2010/05/how-your-web-browser-rats-you-out-online.ars) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the | |
# scheme used to connect to this server | |
map $http_x_forwarded_proto $proxy_x_forwarded_proto { | |
default $http_x_forwarded_proto; | |
'' $scheme; | |
} | |
# If we receive X-Forwarded-Port, pass it through; otherwise, pass along the | |
# server port the client connected to | |
map $http_x_forwarded_port $proxy_x_forwarded_port { | |
default $http_x_forwarded_port; |