Skip to content

Instantly share code, notes, and snippets.

@ornicar
Last active July 16, 2021 07:08
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ornicar/b6a458858c70e744848f to your computer and use it in GitHub Desktop.
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
# /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/;
}
}
@ornicar
Copy link
Author

ornicar commented Aug 12, 2015

@DrAliRagab
Copy link

How to use ??!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment