Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification of labels needed #602

Open
gcaddy opened this issue Mar 26, 2024 · 0 comments
Open

Clarification of labels needed #602

gcaddy opened this issue Mar 26, 2024 · 0 comments

Comments

@gcaddy
Copy link

gcaddy commented Mar 26, 2024

Hi!

I am using the well documented reverse proxy configuration in a docker-compose yaml file:

labels:
          caddy: 'test.mydomain.com'
           caddy.reverse_proxy: "{{upstreams 80}}"

This results in the expected

test.mydomain.com {
	reverse_proxy 172.18.0.5:80
}

Now I'd like to achieve basic caching capabilities of Caddy:
the website that the nginx has already set caching headers. I would like Caddy serve as the cache that serves static copies of the website. I tried various ways to achieve this with labels and nested arguments but as far as I could observe they were not being implemented. I checked the generated Caddyfile in the caddy-container "/config/caddy/Caddyfile.autosave" and the above configuration was removed. I think because of errors in my configuration. It would be nice to get pointers how I could achieve it.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant