etc/caddy

This commit is contained in:
2025-10-02 10:17:19 +02:00
parent e4ee72a44a
commit f93049ae27
4 changed files with 101 additions and 0 deletions

35
etc/caddy/eureka.caddy Normal file
View File

@@ -0,0 +1,35 @@
eureka-informatique.fr {
redir https://www.{host}{uri}
}
boutique.eureka-informatique.fr {
@badbots header_regexp badbots User-Agent "(?i)(BLEXBot|GPTBot|YandexBot|MJ12bot)"
respond @badbots 403
reverse_proxy localhost:8000 {
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-For {remote_host}
}
}
boutique8.eureka-informatique.fr {
@badbots header_regexp badbots User-Agent "(?i)(BLEXBot|GPTBot|YandexBot|MJ12bot)"
respond @badbots 403
reverse_proxy localhost:8000 {
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-For {remote_host}
}
}
www.eureka-informatique.fr {
@badbots header_regexp badbots User-Agent "(?i)(BLEXBot|GPTBot|YandexBot|MJ12bot)"
respond @badbots 403
reverse_proxy localhost:8000 {
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-For {remote_host}
}
}