From 88f244e2fbdb09816a1f0904f71fcb8af09cef17 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 28 Jul 2021 22:43:08 +0200 Subject: [PATCH] Update caddy.txt --- mealie/rootfs/caddy.txt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/mealie/rootfs/caddy.txt b/mealie/rootfs/caddy.txt index 96b95e2f9..9ff9eaa9a 100644 --- a/mealie/rootfs/caddy.txt +++ b/mealie/rootfs/caddy.txt @@ -25,15 +25,22 @@ handle { header X-Frame-Options "SAMEORIGIN" + header X-Content-Type-Options nosniff + header X-Robots-Tag none + header -X-Frame-Options + header Accept-Encoding "" + Connection $connection_upgrade; + Upgrade $http_upgrade; + Host $http_host; + X-Forwarded-For $proxy_add_x_forwarded_for; + X-Forwarded-Proto $scheme; + X-NginX-Proxy true; + X-Real-IP $remote_addr + header @static Cache-Control max-age=31536000 root * /app/dist try_files {path}.html {path} / file_server } - handle_path /* { - header X-Frame-Options "SAMEORIGIN" - reverse_proxy http://127.0.0.1:9000 - } - }