2025-01-17 16:49:53 +01:00
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
|
|
|
|
server_name adjoly.42.fr www.adjoly.42.fr;
|
|
|
|
|
2025-02-15 19:22:32 +01:00
|
|
|
root /var/www/wordpress;
|
2025-01-17 16:49:53 +01:00
|
|
|
index index.php;
|
|
|
|
|
|
|
|
ssl_certificate $NGINX_SSL_CERT_FILE;
|
|
|
|
ssl_certificate_key $NGINX_SSL_KEY_FILE;
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
ssl_session_timeout 10m;
|
|
|
|
|
|
|
|
keepalive_timeout 60;
|
|
|
|
|
|
|
|
location / {
|
2025-01-18 16:38:11 +01:00
|
|
|
try_files $${q}uri $${q}uri/ =404;
|
2025-01-17 16:49:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
fastcgi_pass $NGINX_PHP_HOST:9000;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
2025-01-18 16:38:11 +01:00
|
|
|
include fastcgi.conf;
|
2025-01-17 16:49:53 +01:00
|
|
|
}
|
|
|
|
}
|