Skip to content

Commit a9eb521

Browse files
authored
Update offline read in Windows: fix error in Docker CE LCOW (Permission denied) (#257)
1 parent e8a5cbb commit a9eb521

File tree

3 files changed

+44
-6
lines changed

3 files changed

+44
-6
lines changed

.travis/conf.d/default.conf

-6
This file was deleted.

.travis/conf.d/nginx.conf

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
user root;
2+
worker_processes auto;
3+
4+
error_log /var/log/nginx/error.log warn;
5+
pid /var/run/nginx.pid;
6+
7+
8+
events {
9+
worker_connections 1024;
10+
}
11+
12+
13+
http {
14+
include /etc/nginx/mime.types;
15+
default_type application/octet-stream;
16+
17+
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
18+
'$status $body_bytes_sent "$http_referer" '
19+
'"$http_user_agent" "$http_x_forwarded_for"';
20+
21+
access_log /var/log/nginx/access.log main;
22+
23+
sendfile on;
24+
#tcp_nopush on;
25+
26+
keepalive_timeout 65;
27+
28+
#gzip on;
29+
30+
index index.html index.php;
31+
32+
server {
33+
34+
server_name localhost;
35+
36+
listen 4000;
37+
38+
root /srv/www/;
39+
40+
index index.html;
41+
42+
}
43+
}

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ services:
1717
- .travis/conf.d:/etc/nginx/conf.d
1818
ports:
1919
- 4000:4000
20+
command: ["nginx", "-c", "/etc/nginx/conf.d/nginx.conf", "-g", "daemon off;"]
2021

2122
build:
2223
image: yeasy/docker_practice:latest

0 commit comments

Comments
 (0)