24 lines
605 B
Plaintext
24 lines
605 B
Plaintext
server {
|
|
listen 443 ssl http2;
|
|
server_name __DOMAIN_NAME__;
|
|
|
|
ssl_certificate /etc/ssl/certs/server.crt;
|
|
ssl_certificate_key /etc/ssl/private/server.key;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_prefer_server_ciphers off;
|
|
|
|
root /var/www/html;
|
|
index index.php index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_pass wordpress:9000;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
}
|
|
}
|