-
-
Notifications
You must be signed in to change notification settings - Fork 2
Reverse Proxy
Mia Rose Winter edited this page Jun 18, 2024
·
2 revisions
In the Caddyfile add:
<your domain> {
encode gzip zstd
@static path_regexp \.(js|css|svg|png|webp|jxl|jpg|jpeg|woff|woff2)$
header ?Cache-Control "max-age=600"
header @static Cache-Control "max-age=3600"
header -server
reverse_proxy localhost:8080
}
If Caddy runs as a docker container, you need to use the Wave container name instead of localhost
.
Adapt the Cache-Control header to your needs, this config sets a fallback of 600 (10 minutes) and
3600 (60 minutes) for static assets like fonts, images, js and css. Wave will set a Cache-Control
header for certain files, only overwrite them if you know what you are doing.
TODO
Copyright (c) 2024 Mia Rose Winter