1
0
docker-ttrss/ttrss.nginx.conf
Ruben Vermeersch 1de5eb7a1d Switch to Alpine base image
This brings the image size down from 278.3MB to 100.2MB
2016-07-28 13:58:55 +02:00

36 lines
732 B
Plaintext

daemon off;
pid /run/nginx.pid;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
listen 80;
root /var/www;
index index.php index.html;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
}
}