mirror of
https://github.com/linuxserver/docker-lychee.git
synced 2026-02-06 03:19:59 +08:00
30 lines
699 B
Plaintext
30 lines
699 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
root /var/www/localhost/lychee;
|
|
index index.html index.htm index.php;
|
|
|
|
server_name _;
|
|
client_max_body_size 0;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html /index.php?$args =404;
|
|
}
|
|
|
|
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
|
|
expires max;
|
|
add_header Pragma public;
|
|
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
# With php7-cgi alone:
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
# With php7-fpm:
|
|
#fastcgi_pass unix:/var/run/php7-fpm.sock;
|
|
fastcgi_index index.php;
|
|
include /etc/nginx/fastcgi_params;
|
|
|
|
}
|
|
}
|