From d733c9ccc68cc89db83135b26bef1d150d27d6fc Mon Sep 17 00:00:00 2001 From: Austin Eschweiler <8880292+Eschguy@users.noreply.github.com> Date: Mon, 19 Dec 2022 18:10:55 -0600 Subject: [PATCH 1/2] Add Caddyfile example to readme An example Caddyfile based on what I use --- readme.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/readme.md b/readme.md index ba389a81..828f4a4f 100644 --- a/readme.md +++ b/readme.md @@ -261,6 +261,26 @@ Middleware relating to CORS will cause the app to report Unknown Error when logg From [@Dondochaka](https://discord.com/channels/942908292873723984/942914154254176257/945074590374318170) and [@BeastleeUK](https://discord.com/channels/942908292873723984/942914154254176257/970366039294611506)
+### Example Caddyfile - [Caddy Reverse Proxy](https://caddyserver.com/docs/caddyfile/directives/reverse_proxy) + +``` +subdomain.domain.com { + tls internal + header { + Strict-Transport-Security max-age=31536000 + X-Content-Type-Options nosniff + X-Frame-Options DENY + Referrer-Policy no-referrer-when-downgrade + X-XSS-Protection 1 + } + encode gzip zstd + reverse_proxy LOCAL_IP:PORT { + trusted_proxies xxx.xx.xxx.x/xx xxx.xx.xxx.x/xx + } +} +``` + + # Run from source [See discussion](https://github.com/advplyr/audiobookshelf/discussions/259#discussioncomment-1869729) From b60b75c8da8803cabaaf241cb8d6230cf0f60518 Mon Sep 17 00:00:00 2001 From: Austin Eschweiler <8880292+Eschguy@users.noreply.github.com> Date: Sun, 25 Dec 2022 11:32:12 -0600 Subject: [PATCH 2/2] Update readme.md --- readme.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/readme.md b/readme.md index 828f4a4f..1193d5cd 100644 --- a/readme.md +++ b/readme.md @@ -265,18 +265,8 @@ From [@Dondochaka](https://discord.com/channels/942908292873723984/9429141542541 ``` subdomain.domain.com { - tls internal - header { - Strict-Transport-Security max-age=31536000 - X-Content-Type-Options nosniff - X-Frame-Options DENY - Referrer-Policy no-referrer-when-downgrade - X-XSS-Protection 1 - } encode gzip zstd - reverse_proxy LOCAL_IP:PORT { - trusted_proxies xxx.xx.xxx.x/xx xxx.xx.xxx.x/xx - } + reverse_proxy : } ```