apilylabs / ophiuchi-desktop

A local https proxy server using docker as backend
MIT License
752 stars 27 forks source link

[BUG]Doesn't actually route to specified port #19

Open DogAndHerDude opened 2 months ago

DogAndHerDude commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go through creation process
  2. Assign port 3000
  3. Map url to: https://app.influence.local
  4. Start container
  5. Get 502

Expected behavior To route to localhost:3000

Docker exec Running command: docker exec -it ophiuchi-nginx curl -I http://host.docker.internal:3000 Result: curl: (7) Failed to connect to host.docker.internal port 3000 after 1 ms: Connection refused

Screenshots If applicable, add screenshots to help explain your problem.

image image

Desktop (please complete the following information):

Additional context I'm running vite with SolidJS

cheeselemon commented 2 months ago

can you ping docker.host.internal and share results?

expected result:

cheeselemon@cheeselemon-M1-Max ~ % docker exec -it ophiuchi-nginx ping host.docker.internal
PING host.docker.internal (192.168.65.2): 56 data bytes
64 bytes from 192.168.65.2: seq=0 ttl=36 time=8.755 ms
64 bytes from 192.168.65.2: seq=1 ttl=36 time=1.850 ms
64 bytes from 192.168.65.2: seq=2 ttl=36 time=14.945 ms
64 bytes from 192.168.65.2: seq=3 ttl=36 time=0.872 ms