nginx.conf (569B)
1worker_processes 8; 2user www-data www-data; 3 4events { 5 worker_connections 1024; 6} 7 8http { 9 include mime.types; 10 default_type application/octet-stream; 11 sendfile on; 12 keepalive_timeout 65; 13 14 server { 15 listen 80; 16 server_name localhost; 17 root /service; 18 19 location / { 20 index index.html index.php; 21 } 22 23 location /index.php { 24 include snippets/fastcgi-php.conf; 25 fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; 26 } 27 28 location /uploads { 29 alias /service/files/; 30 } 31 32 location /reports { 33 return 404; 34 } 35 36 location ~ db.sqlite$ { 37 return 404; 38 } 39 } 40}