keylighter/docker/nginx/keylighter.localhost
2020-04-10 21:54:49 +02:00

29 lines
624 B
Plaintext

server {
root /var/www/public/;
server_name keylighter.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";
internal;
}
}
}