etc/caddy
This commit is contained in:
15
etc/caddy/Caddyfile
Normal file
15
etc/caddy/Caddyfile
Normal file
@@ -0,0 +1,15 @@
|
||||
netodet.neotech.fr {
|
||||
reverse_proxy 192.168.137.81:8082
|
||||
}
|
||||
|
||||
app.neotech.fr {
|
||||
reverse_proxy 192.168.137.81:8081
|
||||
}
|
||||
|
||||
|
||||
import /etc/caddy/eureka.caddy
|
||||
import /etc/caddy/neotech.caddy
|
||||
import /etc/caddy/phpmyadmin_neotech.caddy
|
||||
|
||||
# Refer to the Caddy docs for more information:
|
||||
# https://caddyserver.com/docs/caddyfile
|
||||
35
etc/caddy/eureka.caddy
Normal file
35
etc/caddy/eureka.caddy
Normal 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}
|
||||
}
|
||||
}
|
||||
31
etc/caddy/neotech.caddy
Normal file
31
etc/caddy/neotech.caddy
Normal file
@@ -0,0 +1,31 @@
|
||||
# --- OpenBee ---
|
||||
|
||||
openbee.neotech.fr {
|
||||
reverse_proxy 192.168.137.34:8000
|
||||
}
|
||||
|
||||
capture.neotech.fr {
|
||||
reverse_proxy 192.168.137.36:8090
|
||||
}
|
||||
|
||||
|
||||
# --- Services internes Neotech ---
|
||||
|
||||
sources.neotech.fr {
|
||||
# Gitea sur serveur2023
|
||||
reverse_proxy 192.168.137.4:3000
|
||||
}
|
||||
|
||||
nas.neotech.fr {
|
||||
# NAS Synology
|
||||
reverse_proxy 192.168.137.52:5000
|
||||
}
|
||||
|
||||
# --- Maquettes Neotech ---
|
||||
|
||||
cocagne.neotech.fr {
|
||||
reverse_proxy localhost:8000 {
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
header_up X-Forwarded-For {remote_host}
|
||||
}
|
||||
}
|
||||
20
etc/caddy/phpmyadmin_neotech.caddy
Normal file
20
etc/caddy/phpmyadmin_neotech.caddy
Normal file
@@ -0,0 +1,20 @@
|
||||
phpmyadmin.neotech.fr {
|
||||
root * /home/neotech/phpmyadmin
|
||||
encode gzip
|
||||
|
||||
php_fastcgi unix//run/php/php8.4-fpm-phpmyadmin_neotech.sock
|
||||
file_server
|
||||
|
||||
# Restriction d'accès uniquement pour adminer.php
|
||||
@adminer {
|
||||
path /adminer.php
|
||||
remote_ip 212.234.212.81
|
||||
}
|
||||
|
||||
# Toutes les autres IP reçoivent 403
|
||||
@blocked {
|
||||
path /adminer.php
|
||||
not remote_ip 212.234.212.81
|
||||
}
|
||||
respond @blocked 403
|
||||
}
|
||||
Reference in New Issue
Block a user