docker-ubuntumirror/nginx.conf

43 lines
653 B
Nginx Configuration File
Raw Normal View History

2016-04-08 20:41:48 +00:00
user daemon;
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 10;
2016-04-11 00:54:41 +00:00
gzip on;
2016-04-08 20:41:48 +00:00
# default, no host name
server {
listen 80 default_server;
charset utf-8;
server_name _;
root /var/empty;
index index.html index.htm;
location / {
deny all;
}
location /ubuntu/ {
2016-04-11 01:04:08 +00:00
gzip_static on;
2016-04-11 00:54:41 +00:00
root /var/mirror/ubuntu/;
2016-04-08 20:41:48 +00:00
autoindex on;
}
}
}