Skip to content

Commit

Permalink
disable redirect temporarily due to ambgious site definition: issue w…
Browse files Browse the repository at this point in the history
…ith caddy.
  • Loading branch information
FarisZR committed Jun 7, 2024
1 parent f7da8d8 commit 6e2c8c8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions caddy/config/simplytranslate.caddy
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
lingva.aosus.link, lingva.aosus.org {
redir https://simplytranslate.aosus.link{uri} 301
header Cache-Control "max-age=2592000, stale-while-revalidate=2592000"
}
# lingva.aosus.org, lingva.aosus.link {
# redir https://simplytranslate.aosus.link{uri} 301
# header Cache-Control "max-age=2592000, stale-while-revalidate=2592000"
# }

simplytranslate.aosus.link {
reverse_proxy simplytranslate:5000
reverse_proxy simplytranslate:5000
respond /robots.txt 200 {
body "User-agent: *
Disallow: /"
}
}
handle_errors {
# handle_errors is only triggerd on erros from Caddy and not the proxy, that's why we don't specifiy any errors here.
rewrite * /proxy_error_page.html
file_server {
root /srv/
}
}
header {
X-Robots-Tag "noindex, noarchive, nofollow, nosnippet"
header {
X-Robots-Tag "noindex, noarchive, nofollow, nosnippet"
X-XSS-Protection "1; mode=block"
}
}
encode zstd gzip
}
}

0 comments on commit 6e2c8c8

Please sign in to comment.