wemake-services / caddy-gen

Automated Caddy reverse proxy for docker containers
https://hub.docker.com/r/wemakeservices/caddy-gen
MIT License
250 stars 24 forks source link

File server #48

Closed couetilc closed 3 years ago

couetilc commented 3 years ago

Added options to specify a static file server, I found it useful when I didn't want to set up a separate container for a static file server on the same host I was using caddy-gen. So I added some options to take advantage of Caddy's existing static file_server capabilities. Let me know if you find this useful, I realize it's not super configurable because you can't add cache control headers and other things.

For explanation of options, see edits to README, and for example usage, see edits to docker-compose.yml

couetilc commented 3 years ago

Closing in favor of https://github.com/wemake-services/caddy-gen/pull/52