actually works right now
This commit is contained in:
parent
db57876e13
commit
ea138e794a
|
@ -4,6 +4,7 @@ services:
|
|||
mirror:
|
||||
hostname: mirror
|
||||
image: sneak/ubuntumirror
|
||||
build: .
|
||||
network_mode: bridge
|
||||
volumes:
|
||||
- "/mnt/scratch/mirror:/var/mirror"
|
||||
|
|
17
nginx.conf
17
nginx.conf
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue