grocy/buildfiles/grocy.nginx
Katharina Bogad 7f598058bf i18n: static pot to json compilation
Translations aren't embedded on every page load anymore;
this saves roughly 55kB on every single request, because
these can now be cached.
2021-06-20 23:12:17 +02:00

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;
}
}