feat: add Leren page for AI-generated learning modules and update Caddyfile configuration for static routing
This commit is contained in:
30
Caddyfile
30
Caddyfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user