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

Replace varnish with Caddy's cache directive #13

Open
FireMasterK opened this issue Jan 8, 2022 · 4 comments
Open

Replace varnish with Caddy's cache directive #13

FireMasterK opened this issue Jan 8, 2022 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@FireMasterK
Copy link
Member

Or alternatively, haproxy.

@kubo6472
Copy link

Or, or: https://sr.ht/~emersion/tlstunnel/

@FireMasterK
Copy link
Member Author

FireMasterK commented Aug 7, 2022

Partially complete with 2480d0d, Caddy is still left.

We should use the inbuilt cache directive: https://github.com/caddyserver/cache-handler

@FireMasterK FireMasterK added the help wanted Extra attention is needed label Aug 7, 2022
@FireMasterK FireMasterK changed the title Replace varnish with nginx Replace varnish with Caddy's cache directive Aug 7, 2022
@kubo6472
Copy link

{
    order cache before rewrite
    cache
}

example.com {
    cache {
      stale 10s
      ttl 10s
    }
    reverse_proxy your-app:8080
}

This is what I've managed to splice together based on that doc you linked. No idea if it works as you want it to, but I think this is the way.

@FireMasterK
Copy link
Member Author

Is it built by default? If not, I think a xcaddy build to use this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants