feat: add Leren page for AI-generated learning modules and update Caddyfile configuration for static routing
Some checks failed
On Push to Main / test (push) Has been cancelled
On Push to Main / publish (push) Has been cancelled
On Push to Main / deploy-dev (push) Has been cancelled

This commit is contained in:
RaymondVerhoef
2026-05-14 16:33:07 +02:00
parent 59e746a8a8
commit 42d7209773
2 changed files with 96 additions and 16 deletions

View File

@@ -1,7 +1,4 @@
:80 {
root * /srv
file_server
encode gzip zstd
header {
@@ -13,16 +10,6 @@
Permissions-Policy "geolocation=(), microphone=(), camera=()"
}
@static {
path *.css *.js *.png *.jpg *.jpeg *.gif *.webp *.svg *.woff *.woff2 *.ttf
}
header @static Cache-Control "public, max-age=31536000, immutable"
@html {
path *.html /
}
header @html Cache-Control "public, max-age=0, must-revalidate"
handle /api/anthropic/* {
uri strip_prefix /api/anthropic
reverse_proxy https://api.anthropic.com {
@@ -30,7 +17,22 @@
}
}
try_files {path} /index.html
handle {
root * /srv
@static {
path *.css *.js *.png *.jpg *.jpeg *.gif *.webp *.svg *.woff *.woff2 *.ttf
}
header @static Cache-Control "public, max-age=31536000, immutable"
@html {
path *.html /
}
header @html Cache-Control "public, max-age=0, must-revalidate"
try_files {path} /index.html
file_server
}
handle_errors {
rewrite * /index.html