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