ItsEcholot / ContainerNursery

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

subfolder proxying #43

Open everythingguy opened 1 year ago

everythingguy commented 1 year ago

Resolves https://github.com/ItsEcholot/ContainerNursery/issues/27

One important note, the application you are proxying would need to be able to rewrite its URLs to include the subfolder at the beginning of its URLs.

everythingguy commented 1 year ago

Example Config

proxyListeningPort: 80
proxyHosts:
  - domain: test.com/myapp
    containerName: hello-world
    proxyHost: localhost
    proxyPort: 3000
    timeoutSeconds: 120
webysther commented 1 year ago

I have a case the use example.com and example.com/admin, which point to different container/port, this PR works for this scenario?