mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-14 15:43:37 +01:00
go-proxy starts but does not work #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @earvingad on GitHub (Mar 28, 2024).
Hello, the program seems to start but it does not work.
Config file content:
Provider eee.yml:
when running
sudo /bin/go-proxyI get the following log:but when I try to enter eee.service.lan I get "enable to connect" and I cannot access
10.0.1.240:8080.Local DNS is correctly pointing eee.service.lan to 10.0.1.240.
I don't know what I am missing.
@yusing commented on GitHub (Mar 28, 2024):
Hi, thanks for trying
go-proxyout. A few questions I want to ask:go-proxy? Is it really10.0.1.240?go-proxy?eee.service.lan) ping10.0.1.240?host:toeee.service.lan? Do you want to proxy to port 8000 of the same machine?@yusing commented on GitHub (Mar 28, 2024):
I'm sure both your config and
eee.ymlis valid, seems like it's a connection problem between your machines@earvingad commented on GitHub (Mar 28, 2024):
Additionally, where should I set the domain "service.lan" so the subdomain like eee.service.lan resolves correctly of I use host: 10.0.1.240 in the eee.yml? Documentation is not clear.
I cannot Access 10.0.1.240:8080 or 127.0.0.1:8080 on the same machine running go-proxy.
@yusing commented on GitHub (Mar 28, 2024):
I have tried to replicate your config and provider file on a new LXC container, and I found a bug it mistakenly redirected to https even if no cert loaded. But it is not your case, mine showing
<a href="https://localhost/?">Moved Permanently</a>.What is the output of
curl 127.0.0.1:8080?@earvingad commented on GitHub (Mar 28, 2024):
Yes! That same results I get when I use curl. Webbrowser will just error the connection.
@yusing commented on GitHub (Mar 28, 2024):
So I want to get the exact output of curl, to figure out what error is.
I submitted a commit to fix incorrect http -> https redirect when no cert is provided, please run
git pulland try again to see if it work now.@yusing commented on GitHub (Mar 28, 2024):
@yusing commented on GitHub (Mar 28, 2024):
As the README shows, domain name does not matter. As long as the DNS resolve eee.service.lan or *.service.lan into 10.0.1.240, you can access all of them.
A simple way to do this, is to set the A record of
*.service.lanin your DNS to 10.0.1.240. Then all subdomain toservice.lanwill resolve to 10.0.1.240. For example:@earvingad commented on GitHub (Mar 28, 2024):
Thanks for the help, it is working correctly now!
Curl before fix:
After fix it is correctly working:
Thanks a lot!