2017-04-29 03:16:15 +02:00
|
|
|
server {
|
2018-08-01 16:33:51 +02:00
|
|
|
listen 8888;
|
|
|
|
root /srv;
|
|
|
|
index index.php;
|
2017-04-29 03:16:15 +02:00
|
|
|
|
2018-08-01 16:33:51 +02:00
|
|
|
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
|
|
|
|
expires 30d;
|
|
|
|
access_log off;
|
|
|
|
}
|
2017-04-29 03:16:15 +02:00
|
|
|
|
2018-08-01 16:33:51 +02:00
|
|
|
location ~ ^/(data|cfg|tmp) {
|
|
|
|
deny all;
|
|
|
|
}
|
2017-04-29 03:16:15 +02:00
|
|
|
|
2018-08-01 16:33:51 +02:00
|
|
|
location ~* /(.*)\.(?:markdown|md|twig|yaml|yml|ht|htaccess|ini)$ {
|
|
|
|
deny all;
|
|
|
|
}
|
2017-04-29 03:16:15 +02:00
|
|
|
|
2018-08-01 16:33:51 +02:00
|
|
|
location ~ /\. {
|
|
|
|
deny all;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ /index.php;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_pass unix:/php/run/php-fpm.sock;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
include /nginx/conf/fastcgi_params;
|
|
|
|
}
|
2017-04-29 03:16:15 +02:00
|
|
|
}
|