Skip to content

Commit 4575c2f

Browse files
committed
try with former config?
1 parent b4d071f commit 4575c2f

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

docker/nginx/nginx-plain-tls.conf

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
# perf: define how many processes can be used ('auto' for one per core, doesn't work on docker)
21
worker_processes WORKER_PROCESSES;
2+
worker_cpu_affinity 0001 0010 0100 1000;
3+
4+
events {
5+
worker_connections 1024;
6+
}
37

4-
events {
5-
# perf: ensures that each worker accepts as many connections as possible
6-
multi_accept on;
7-
worker_connections 1024;
8-
}
98

109
http {
10+
# uncomment the following to enable SSL data logging (protocol + cipher)
11+
12+
# log_format ssl_logs '$remote_addr - $remote_user [$time_local] "$request" '
13+
# '$status $body_bytes_sent "$http_referer" '
14+
# '"$http_user_agent" "$http_x_forwarded_for" '
15+
# '[$ssl_protocol] [$ssl_cipher]';
1116

17+
# access_log /var/log/nginx/access.log ssl_logs;
1218
access_log off;
1319

1420
server {
1521
listen 8080 ssl;
22+
listen [::]:8080 ssl;
23+
server_name YOUR_IP;
1624

1725
ssl_certificate /etc/ssl/certs/testCert.crt;
1826
ssl_certificate_key /etc/ssl/private/testCert.rsa;
@@ -21,12 +29,16 @@ http {
2129
ssl_session_cache off;
2230
ssl_session_tickets off;
2331

24-
error_log stdout info;
32+
# returns default nginx page
33+
location / {
34+
root /usr/share/nginx/html;
35+
index index.html;
36+
}
2537

2638
# returns plain text response
2739
location /hello-world {
2840
return 200 'Hello World!';
2941
add_header Content-Type text/plain;
3042
}
3143
}
32-
}
44+
}

0 commit comments

Comments
 (0)