mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Translations aren't embedded on every page load anymore; this saves roughly 55kB on every single request, because these can now be cached.
22 lines
392 B
Nginx Configuration File
22 lines
392 B
Nginx Configuration File
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
root /grocy/public;
|
|
index index.php;
|
|
|
|
server_name _;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php$is_args$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include snippets/fastcgi-php.conf;
|
|
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
} |