dockerfiles/privatebin/nginx.conf

90 lines
2.1 KiB
Nginx Configuration File
Raw Normal View History

2016-04-11 15:59:32 +02:00
worker_processes auto;
2016-09-16 17:08:06 +02:00
pid /tmp/nginx.pid;
2016-04-11 15:59:32 +02:00
daemon off;
events {
worker_connections 1024;
use epoll;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log off;
2016-09-18 02:14:17 +02:00
error_log /tmp/ngx_error.log error;
2016-04-11 15:59:32 +02:00
sendfile on;
keepalive_timeout 15;
keepalive_disable msie6;
keepalive_requests 100;
tcp_nopush on;
2016-04-13 13:54:30 +02:00
tcp_nodelay on;
2016-04-11 15:59:32 +02:00
server_tokens off;
2016-09-17 13:05:32 +02:00
fastcgi_temp_path /tmp/fastcgi 1 2;
client_body_temp_path /tmp/client_body 1 2;
proxy_temp_path /tmp/proxy 1 2;
uwsgi_temp_path /tmp/uwsgi 1 2;
scgi_temp_path /tmp/scgi 1 2;
2016-04-11 15:59:32 +02:00
gzip on;
gzip_comp_level 5;
gzip_min_length 512;
gzip_buffers 4 8k;
gzip_proxied any;
gzip_vary on;
gzip_disable "msie6";
gzip_types
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
application/vnd.ms-fontobject
font/truetype
font/opentype
image/svg+xml;
server {
2016-09-16 17:08:06 +02:00
listen 8888;
2016-04-11 15:59:32 +02:00
root /zerobin;
index index.php index.html;
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
location ~ ^/(data|cfg|tmp) {
deny all;
}
location ~* /(.*)\.(?:markdown|md|twig|yaml|yml|ht|htaccess|ini)$ {
deny all;
}
location ~ /\. {
deny all;
}
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
fastcgi_index index.php;
2016-09-16 17:08:06 +02:00
fastcgi_pass unix:/tmp/php-fpm.sock;
2016-04-11 15:59:32 +02:00
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
}