netptop / siteproxy

reverse proxy, online proxy, 反向代理,免翻墙访问Youtube/twitter/Google, 支持github和telegram web登录(请注意不要通过不信任的代理进行登录)。支持DuckDuckGo AI Chat(可免费访问chatGPT3.5和Claude3)
MIT License
1.96k stars 1.03k forks source link

Self Dependent Server #1

Closed ghost closed 4 years ago

ghost commented 4 years ago

I gotthe server working, but when I try to access youtube videos, it leads to siteproxy.now.sh. It wont use my own server.

netptop commented 4 years ago

did you modify your serverName as required in deployment steps?

ghost commented 4 years ago

let config = { httpprefix: 'https', port: 443, serverName: 'siteproxy.now.sh', }

Should I change this? If I change it to my server, it still doesn't work.

ghost commented 4 years ago

This is what I changed it to

let config = {
    'httpprefix' : 'https',
    'port' : '443',
    'serverName' : 'poxe.helixable.repl.co' //Test server
}

When I visit youtube.com, this is what is logged in the console:


[HPM] Error occurred while trying to proxy request /url?sa=t&source=web&rct=j&url=https://poxe.helixable.repl.co:443/https/www.youtube.com/&ved=2ahUKEwjw-ajM9LDoAhVRbs0KHXzqA74QFjAAegQIGxAC from poxe--helixable.repl.co to https://www.google.com (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_syste
m_errors)[HPM] Error occurred while trying to proxy request /async/ecr?ei=ntV4XvAy0dy1BvzUj_AL&lei=ntV4XvAy0dy1BvzUj_AL&yv=3&async=encoded_cache_key:ChMI8PmozPSw6AIVUW7NCh186gO-EgIYAg,version_info:YzXJ7cPlt7wdkM8Etx7IT2tBSCeAEBc,attempt:1,_fmt:jspb from poxe--helixable.repl.co to https://www.google.com (ECONNRESET) (https:
//nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /async/ecr?async=encoded_cache_key%3AChMI8PmozPSw6AIVUW7NCh186gO-EgIYAg%2Cversion_info%3AYzXJ7cPlt7wdkM8Etx7IT2tBSCeAEBc%2Cattempt%3A1%2C_fmt%3Ajspb&ei=ntV4XvAy0dy1BvzUj_AL&lei=ntV4XvAy0dy1BvzUj_AL&yv=3 from poxe--helixable.repl.co to https://www.google.com (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /async/ecr?async=encoded_cache_key%3AChMI8PmozPSw6AIVUW7NCh186gO-EgIYAg%2Cversion_info%3AYzXJ7cPlt7wdkM8Etx7IT2tBSCeAEBc%2Cattempt%3A1%2C_fmt%3Ajspb&ei=ntV4XvAy0dy1BvzUj_AL&lei=ntV4XvAy0dy1BvzUj_AL&yv=3 from poxe--helixable.repl.co to https://www.google.com (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)

Also, many of the icons in youtube don't load in.

ghost commented 4 years ago

Nevermind. I got it to work. Thanks!