16 lines
443 B
Caddyfile
16 lines
443 B
Caddyfile
:80 {
|
|
root * /usr/share/caddy
|
|
file_server
|
|
|
|
@notStatic {
|
|
not path_regexp static \.\(js|css|png|jpg|jpeg|gif|svg|ico|json|webmanifest|map|txt|woff2?\)$
|
|
}
|
|
try_files {path} /index.html @notStatic
|
|
|
|
# CORS-Header für Cross-Origin-Requests
|
|
header {
|
|
Access-Control-Allow-Origin *
|
|
Access-Control-Allow-Methods "GET, POST, OPTIONS"
|
|
Access-Control-Allow-Headers "Content-Type"
|
|
}
|
|
} |