mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-27 00:10:32 +02:00
Update Caddyfile
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
# Handles Recipe Images / Assets
|
# Handles Recipe Images / Assets
|
||||||
handle_path /api/media/recipes/* {
|
handle_path /api/media/recipes/* {
|
||||||
header @static Cache-Control max-age=31536000
|
header @static Cache-Control max-age=31536000
|
||||||
|
header X-Frame-Options "SAMEORIGIN"
|
||||||
root * /app/data/recipes/
|
root * /app/data/recipes/
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
@@ -29,6 +30,7 @@
|
|||||||
handle {
|
handle {
|
||||||
header @static Cache-Control max-age=31536000
|
header @static Cache-Control max-age=31536000
|
||||||
root * /app/dist
|
root * /app/dist
|
||||||
|
header X-Frame-Options "SAMEORIGIN"
|
||||||
try_files {path}.html {path} /
|
try_files {path}.html {path} /
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user