actually works right now

This commit is contained in:
Jeffrey Paul 2016-04-11 03:38:47 +02:00
parent db57876e13
commit ea138e794a
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2
3 changed files with 18 additions and 14 deletions

View File

@ -4,6 +4,7 @@ services:
mirror:
hostname: mirror
image: sneak/ubuntumirror
build: .
network_mode: bridge
volumes:
- "/mnt/scratch/mirror:/var/mirror"

View File

@ -1,4 +1,4 @@
user daemon;
user www-data;
worker_processes auto;
pid /var/run/nginx.pid;
@ -12,6 +12,9 @@ http {
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
gzip on;
@ -27,16 +30,16 @@ http {
index index.html index.htm;
location / {
deny all;
}
location /ubuntu/ {
gzip_static on;
root /var/mirror/ubuntu/;
# alias, not root!
# trailing slash important!
alias /var/mirror/ubuntu/;
autoindex on;
}
location / {
deny all;
}
}
}

View File

@ -1,4 +1,4 @@
deb http://archive.ubuntu.com/ubuntu trusty main universe
deb http://archive.ubuntu.com/ubuntu trusty-updates main universe
deb http://archive.ubuntu.com/ubuntu trusty-backports main universe
deb http://archive.ubuntu.com/ubuntu trusty-security main universe
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main universe
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main universe
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main universe
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main universe