ItsEcholot / ContainerNursery

Puts Docker Containers to sleep and wakes them back up when they're needed
MIT License
135 stars 7 forks source link

container start but not redirected #54

Closed JamesDAdams closed 11 months ago

JamesDAdams commented 1 year ago

Hi,

i have a bug with FilesBrowser container the container is started by ContainerNursery but on website i'm not redirected.

My config :

proxyHosts:
  - domain: files.jamesserver.fr
    containerName: FileBrowser
    proxyHost: 192.168.0.3
    proxyPort: 80
    timeoutSeconds: 30

{"level":20,"time":1697390317163,"pid":1,"hostname":"c3f42585130c","host":"files.domaine.fr","target":{"protocol":"http:","host":"127.0.0.1","port":8080},"headers":{"x-container-nursery-container-name":"FileBrowser"},"msg":"Proxied request"} {"level":20,"time":1697390317179,"pid":1,"hostname":"c3f42585130c","domain":["files.domaine.fr"],"timeoutSeconds":30,"msg":"Resetting connection timeout"} {"level":20,"time":1697390317180,"pid":1,"hostname":"c3f42585130c","domain":["files.domaine.fr"],"proxyHost":"192.168.0.3","proxyPort":80,"status":404,"headers":{},"msg":"Checked if target is ready"} {"level":20,"time":1697390348700,"pid":1,"hostname":"c3f42585130c","domain":["files.domaine.fr"],"timeoutSeconds":30,"msg":"Resetting connection timeout"}

apsinghnandha commented 1 year ago

I have the same issue with FileBrowser. It starts but never redirect. Only when i restart nursery it redirects.

ItsEcholot commented 1 year ago

@JamesDAdams Can you please check that the ContainerNursery Container can access http://192.168.0.3/80 (maybe with curl)? The redirection fails because your FileBrowser Container seems to return 404 to ContainerNursery when accessed this way.

ItsEcholot commented 1 year ago

Please try with the newest version (1.8.0) and using the config parameter proxyUseCustomMethod set to GET.