actually works right now
This commit is contained in:
parent
db57876e13
commit
ea138e794a
@ -4,6 +4,7 @@ services:
|
|||||||
mirror:
|
mirror:
|
||||||
hostname: mirror
|
hostname: mirror
|
||||||
image: sneak/ubuntumirror
|
image: sneak/ubuntumirror
|
||||||
|
build: .
|
||||||
network_mode: bridge
|
network_mode: bridge
|
||||||
volumes:
|
volumes:
|
||||||
- "/mnt/scratch/mirror:/var/mirror"
|
- "/mnt/scratch/mirror:/var/mirror"
|
||||||
|
17
nginx.conf
17
nginx.conf
@ -1,4 +1,4 @@
|
|||||||
user daemon;
|
user www-data;
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
|
|
||||||
pid /var/run/nginx.pid;
|
pid /var/run/nginx.pid;
|
||||||
@ -12,6 +12,9 @@ http {
|
|||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
|
tcp_nopush on;
|
||||||
|
tcp_nodelay on;
|
||||||
|
|
||||||
keepalive_timeout 10;
|
keepalive_timeout 10;
|
||||||
gzip on;
|
gzip on;
|
||||||
|
|
||||||
@ -27,16 +30,16 @@ http {
|
|||||||
|
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
||||||
location / {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /ubuntu/ {
|
location /ubuntu/ {
|
||||||
gzip_static on;
|
# alias, not root!
|
||||||
root /var/mirror/ubuntu/;
|
# trailing slash important!
|
||||||
|
alias /var/mirror/ubuntu/;
|
||||||
autoindex on;
|
autoindex on;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
deb http://archive.ubuntu.com/ubuntu trusty main universe
|
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main universe
|
||||||
deb http://archive.ubuntu.com/ubuntu trusty-updates main universe
|
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main universe
|
||||||
deb http://archive.ubuntu.com/ubuntu trusty-backports main universe
|
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main universe
|
||||||
deb http://archive.ubuntu.com/ubuntu trusty-security main universe
|
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main universe
|
||||||
|
Loading…
Reference in New Issue
Block a user