Skip to content

Instantly share code, notes, and snippets.

@GamePlayer-8
Created July 19, 2023 07:33
Show Gist options
  • Save GamePlayer-8/4f7da7d544bddab74abd37f22224a310 to your computer and use it in GitHub Desktop.
Save GamePlayer-8/4f7da7d544bddab74abd37f22224a310 to your computer and use it in GitHub Desktop.
nginx_gotty.conf
set $gottyip <GoTTY IP>;
set $gottyport <GoTTY PORT>;
location /tty/ {
proxy_pass https://$gottyip:$gottyport/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Accept-Encoding "";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_pass_request_headers on;
proxy_set_header Connection $connection_upgrade;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment