Created
July 19, 2023 07:33
-
-
Save GamePlayer-8/4f7da7d544bddab74abd37f22224a310 to your computer and use it in GitHub Desktop.
nginx_gotty.conf
This file contains hidden or 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
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