Created
October 11, 2023 16:20
-
-
Save simonkuang/1ad202c5cb142c5be03825241a7b71d7 to your computer and use it in GitHub Desktop.
Revisions
-
simonkuang created this gist
Oct 11, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ server { listen 8080; resolver 8.8.8.8; location ~* ^/cdn/discordapp/(.*)$ { proxy_set_header Host 'cdn.discordapp.com'; proxy_set_header Accept-Encoding $http_accept_encoding; proxy_pass https://cdn.discordapp.com/$1; } location ~* ^/discordapp/cdn/(.*)$ { proxy_set_header Host 'cdn.discordapp.com'; proxy_set_header Accept-Encoding $http_accept_encoding; proxy_pass https://cdn.discordapp.com/$1; } location / { echo 'Welcome'; } }