mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-23 18:37:32 +00:00
Oliver Davies
6b5c1b5aee
Allow for overriding the project root from `/app` to something else, such as `/var/www/html`. The default is set within a new `build.defaults.yaml` file which the project specific file is merged into. Fixes #27
23 lines
541 B
Twig
23 lines
541 B
Twig
# {{ managedText | raw }}
|
|
|
|
server {
|
|
server_name _;
|
|
|
|
root {{ project_root }}/{{ 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;
|
|
}
|
|
}
|