mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-23 18:37:32 +00:00
Oliver Davies
1fb75c9d93
Allow for setting a `docroot` directory for Drupal projects. By default, I've set this to `web` as that's what the Drupal Composer scaffold projects use, but other platforms such as Acquia Cloud hosting use `docroot`. This is how it can be configured in `build.yaml`: ```yaml drupal: docroot: docroot ``` Fixes #2
21 lines
500 B
Twig
21 lines
500 B
Twig
server {
|
|
server_name _;
|
|
|
|
root /app/{{ drupal.docroot }};
|
|
|
|
location / {
|
|
try_files $uri /index.php?$query_string;
|
|
}
|
|
|
|
location ~ \.php(/|$) {
|
|
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
|
|
try_files $fastcgi_script_name =404;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_param QUERY_STRING $query_string;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_pass php:9000;
|
|
}
|
|
}
|