-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get Pingap to work at all. #103
Comments
Upstream is available, and currently serving content? |
I'm on latest. |
[locations."waroftheservers.com"] Same error. |
upstream health check, upstream count: 1 |
Copied example: https://github.com/vicanso/pingap/blob/main/examples/proxy-upstream.toml Doesn't work at all: Location not found, host:waroftheservers.com path:/ |
Please check if http://77.68.94.xx is accessible? Does it need to specify the host for the upstream? |
Yes, 77.68.94.xx is accessible, and currently serving requests. |
Yes 77.68.94.xx requires a Host being sent to return the website. 77.68.94.xx contains 100's of websites, and waroftheservers.com is one. |
Can you show me all config? And |
Feel free to login and look. [locations."waroftheservers.com"] [servers.HTTP] [upstreams."77.68.94.84"] details to login: admin |
curl -H "Host: waroftheservers.com" http://77.68.94.84 returns: Hello, world! the site content. |
Why do the sever and uptream use the same domain? |
Sorry, you've lost me? |
Are you saying this would be a working conf? [locations."waroftheservers.com"] [upstreams."77.68.94.84"] |
What is the required config to make a simple proxy from waroftheworlds to ip? |
Is your admin listening address 127.0.0.1:80? If so, adjust it to match the http server at 0.0.0.0:80. |
By the way, if the host used by your server is consistent with the upstream, then you don't need to set: proxy_set_headers = ["Host:waroftheservers.com"] |
http://109.224.228.64/pingap/#/config Location not found, host:waroftheservers.com path:/ [locations."waroftheservers.com"] [servers.http80] [upstreams."77.68.94.84"] |
Note that if admin uses 0.0.0.0:80, it will still only provide the admin service. Therefore, you need to configure the HTTP server to use 0.0.0.0:80, at which point the admin service will be mounted to the HTTP server with the same listening address. |
Did you restart pingap? |
Is your configuration file not mounted to the host machine? After you restart, I see the configuration is gone. |
Yes, it's persistent for me: http://109.224.228.64/pingap/#/config Has been like that for hours. |
Did you restart pingap? Show me the docker run command. |
ports 443 and 80 are open. |
working directory: /opt/pingap |
Is it possible to specify the container startup command? Because if not specified, the default startup command in the Dockerfile will load docker run -it --restart=always \
-p 3018:3018 \
-e PINGAP_CONF="etcd://xxxxx" \
-e PINGAP_ADMIN_ADDR=0.0.0.0:3018 \
-e PINGAP_ADMIN_USER=pingap \
-e PINGAP_ADMIN_PASSWORD=123123 \
-e PINGAP_AUTORELOAD=true \
vicanso/pingap pingap |
Yes, it is, what should the startup command be? |
Only exec |
Done, it appears to be actually connecting when visiting waroftheservers.com but won't connect: curl: (7) Failed to connect to waroftheservers.com port 80 after 2152 ms: Could not connect to server
|
Check the pingap log for more details. |
Nothing in logs that indicates any connection for waroftheservers.com |
Without more information, it is impossible to guess the specific problem. |
|
Or you can send me the startup command, configuration, and other details, because I'm using your configuration, it's ok.
|
This question has been stale for a week. It will be closed in an additional day if not updated. |
This issue has been closed because it has been stalled with no activity. |
http://waroftheservers.com/
Location not found, host:waroftheservers.com path:/
Regardless of configuration, Pingap won't serve the requests.
No errors, or warns in log at all, all hot reloads detected and performed.
The text was updated successfully, but these errors were encountered: