allo la config

This commit is contained in:
0x00000000
2025-06-14 22:32:48 +02:00
parent 86705f0538
commit 5c6df0be0d
+17 -17
View File
@@ -1,22 +1,22 @@
server { server {
#SSL/TLS Configuration #SSL/TLS Configuration
listen 443 ssl; listen 443 ssl;
ssl_protocols TLSv1.2 TLSv1.3; ssl_protocols TLSv1.2 TLSv1.3;
ssl_certificate /etc/nginx/ssl/inception.crt; ssl_certificate /etc/nginx/ssl/inception.crt;
ssl_certificate_key /etc/nginx/ssl/inception.key; ssl_certificate_key /etc/nginx/ssl/inception.key;
#root and index and server_name #root and index and server_name
root /var/www/html; root /var/www/html;
server_name yantoine.42.fr; server_name yantoine.42.fr;
index index.php index.html index.htm; index index.php index.html index.htm;
location / { location / {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }
# Pour toutes les requetes php # Pour toutes les requetes php
location ~ \.php$ { location ~ \.php$ {
include snippets/fastcgi-php.conf; include snippets/fastcgi-php.conf;
fastcgi_pass php:9000; fastcgi_pass php:9000;
} }
} }