1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-24 08:12:31 +02:00
reproxy/examples/ssl/README.md
Umputun 4c051ca37f
detect in-container and set listen address to 0.0.0.0 (#62)
* detect in-container and set listen to 0.0.0.0

* simplify default address logic

don't change if user defined, use 127.0.0.1:8080 for non-docker and 0.0.0.0:8080 for in-docker only if nothing set

* add dynamic default to redir http port

* add docs about dynamic defaults

* add ssl example

* lint: params warn
2021-05-03 21:40:21 -05:00

399 B

Example of a docker provider with an automatic SSL (Let's Encrypt)

This example should run on the machine with resolvable FQDN. All files use example.com, make sure you replace it with your domain.

run this example with docker-compose up and try to hit containers:

  • curl https://example.com/api/svc1/123
  • curl http://example.com/api/svc2/345
  • curl http://example.com/whoami/test