Transfert de TDM

This commit is contained in:
2025-10-31 11:28:29 +01:00
parent b22ae3c851
commit 3069372fdd
6 changed files with 57 additions and 2 deletions

View File

@@ -133,5 +133,5 @@ _Non_
L'horloge système est-elle à l'heure universelle (UTC) ?
_Non_
Veuillez sélectionner <Continuer> pour redémarrer
Veuillez sélectionner <Continuer> pour redémarrer.
Continuer

View File

@@ -0,0 +1,17 @@
<VirtualHost *:8000>
ServerName https://www.tdm-pompes.com
DocumentRoot /home/tdm/wp6
<Directory /home/tdm/wp6>
AllowOverride All
Options -Indexes
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php8.4-fpm-wp6_tdm.sock|fcgi://localhost/"
</FilesMatch>
ErrorLog /var/log/apache2/wp6_tdm.error.log
CustomLog /var/log/apache2/wp6_tdm.access.log vhost_proxy_combined
</VirtualHost>

View File

@@ -0,0 +1,17 @@
<VirtualHost *:8000>
ServerName https://www.tdm-pompes.com
DocumentRoot /home/tdm/wp6
<Directory /home/tdm/wp6>
AllowOverride All
Options -Indexes
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php8.4-fpm-wp6_tdm.sock|fcgi://localhost/"
</FilesMatch>
ErrorLog /var/log/apache2/wp6_tdm.error.log
CustomLog /var/log/apache2/wp6_tdm.access.log vhost_proxy_combined
</VirtualHost>

View File

@@ -11,5 +11,15 @@ import /etc/caddy/eureka.caddy
import /etc/caddy/neotech.caddy
import /etc/caddy/phpmyadmin_neotech.caddy
www.tdm-pompes.com {
@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}
}
}
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile

View File

@@ -46,7 +46,7 @@ kvm:x:993:
render:x:992:
netdev:x:101:
_ssh:x:102:
sftp:x:990:eureka,neotech
sftp:x:990:eureka,neotech,tdm
eureka:x:1000:
neotech:x:1001:
mysql:x:103:
@@ -55,3 +55,4 @@ caddy:x:991:
msmtp:x:105:
prometheus:x:106:
messagebus:x:989:
tdm:x:1002:

View File

@@ -0,0 +1,10 @@
[wp6_tdm]
user = tdm
group = tdm
listen = /run/php/php8.4-fpm-wp6_tdm.sock
listen.owner = www-data
listen.group = www-data
pm = ondemand
pm.max_children = 10