czydojade/docker/nginx/czydojade
2020-01-01 22:59:24 +01:00

29 lines
671 B
Plaintext

server {
root /var/www/public/;
server_name czydojade.localhost;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
location ~ \.(js|css)$ {
expires 1y;
}
location ~ ^/index\.php(/|$) {
fastcgi_pass php:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_param APP_ENV "dev";
fastcgi_param DATABASE_URL "sqlite:///%kernel.project_dir%/var/app.db";
fastcgi_param GOOGLE_ANALYTICS "UA-00000-00";
internal;
}
}
}