14 lines
362 B
Caddyfile
14 lines
362 B
Caddyfile
:80 {
|
|
root * /usr/share/caddy
|
|
file_server
|
|
|
|
# Behandle die HTML-Datei als Index
|
|
try_files {path} /Just%20a%20QR%20Code.html
|
|
|
|
# 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"
|
|
}
|
|
} |