File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change 1
- # perf: define how many processes can be used ('auto' for one per core, doesn't work on docker)
2
1
worker_processes WORKER_PROCESSES;
2
+ worker_cpu_affinity 0001 0010 0100 1000;
3
+
4
+ events {
5
+ worker_connections 1024;
6
+ }
3
7
4
- events {
5
- # perf: ensures that each worker accepts as many connections as possible
6
- multi_accept on;
7
- worker_connections 1024;
8
- }
9
8
10
9
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]';
11
16
17
+ # access_log /var/log/nginx/access.log ssl_logs;
12
18
access_log off;
13
19
14
20
server {
15
21
listen 8080 ssl;
22
+ listen [::]:8080 ssl;
23
+ server_name YOUR_IP;
16
24
17
25
ssl_certificate /etc/ssl/certs/testCert.crt;
18
26
ssl_certificate_key /etc/ssl/private/testCert.rsa;
@@ -21,12 +29,16 @@ http {
21
29
ssl_session_cache off;
22
30
ssl_session_tickets off;
23
31
24
- error_log stdout info;
32
+ # returns default nginx page
33
+ location / {
34
+ root /usr/share/nginx/html;
35
+ index index.html;
36
+ }
25
37
26
38
# returns plain text response
27
39
location /hello-world {
28
40
return 200 'Hello World!';
29
41
add_header Content-Type text/plain;
30
42
}
31
43
}
32
- }
44
+ }
You can’t perform that action at this time.
0 commit comments