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"
|
||||
|
|
23
nginx.conf
23
nginx.conf
|
@ -1,4 +1,4 @@
|
|||
user daemon;
|
||||
user www-data;
|
||||
worker_processes auto;
|
||||
|
||||
pid /var/run/nginx.pid;
|
||||
|
@ -11,9 +11,12 @@ http {
|
|||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 10;
|
||||
gzip on;
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
|
||||
keepalive_timeout 10;
|
||||
gzip on;
|
||||
|
||||
# default, no host name
|
||||
server {
|
||||
|
@ -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