Last active
July 16, 2021 07:08
-
-
Save ornicar/b6a458858c70e744848f to your computer and use it in GitHub Desktop.
Set up a lichess proxy to bypass firewalls and play chess at school/work
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
# /etc/nginx/sites-enabled/lichess.proxy.conf | |
# Replace "lichess.scalex.org" by your own domain. | |
# Note: This only works for the "en" subdomain. | |
server { | |
listen 80; | |
server_name socket.en.lichess.scalex.org; | |
location / { | |
proxy_set_header Host socket.en.lichess.org; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_pass http://socket.en.lichess.org/; | |
} | |
} | |
server { | |
listen 80; | |
server_name en.lichess.scalex.org; | |
proxy_cookie_domain .lichess.org .lichess.scalex.org; | |
location / { | |
proxy_set_header Host en.lichess.org; | |
proxy_pass http://en.lichess.org/; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example: http://en.lichess.scalex.org/