mirror of
https://github.com/Ladebeze66/Inception.git
synced 2025-12-15 21:57:09 +01:00
29 lines
674 B
Plaintext
29 lines
674 B
Plaintext
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name fgras.42.fr;
|
|
server_name www.fgras.42.fr;
|
|
|
|
# SSL certificates
|
|
ssl_certificate /etc/nginx/ssl/inception.crt;
|
|
ssl_certificate_key /etc/nginx/ssl/inception.key;
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
root /var/www/html;
|
|
index index.php index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include snippets/fastcgi-php.conf;
|
|
fastcgi_pass wordpress:9000;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
}
|
|
}
|