upload nginx config file
parent
34bc83e6c6
commit
919640ecc9
|
@ -0,0 +1,24 @@
|
|||
server {
|
||||
listen 127.0.0.1:80 default_server;
|
||||
root /srv/endboard;
|
||||
index index.php;
|
||||
server_name _;
|
||||
server_tokens off;
|
||||
gzip on;
|
||||
gzip_min_length 1000;
|
||||
gzip_buffers 4 8k;
|
||||
gzip_http_version 1.0;
|
||||
gzip_disable "msie6";
|
||||
gzip_types text/plain text/css application/json;
|
||||
gzip_vary on;
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue