42_Inception/srcs/requirements/nginx/conf/example.com.conf
2025-01-25 16:40:18 +01:00

34 lines
No EOL
963 B
Text

server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name example.com;
root /var/www/wordpress;
# SSL
ssl_protocols TLSv1.2 TLSv1.3;
ssl_certificate /localhost.crt;
ssl_certificate_key /localhost.key;
# logging
access_log /var/log/nginx/access.log combined buffer=512k flush=1m;
error_log /var/log/nginx/error.log warn;
index index.php;
error_page 404 /index.php;
location ~ [^/]\.php(/|$) {
try_files $uri =404;
fastcgi_pass wordpress:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location = /adminer/index.php {
root /var/www;
fastcgi_pass adminer:9001;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}