-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
55 lines (40 loc) · 1.11 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
worker_processes auto;
#worker_processes 1;
pid ./nginx.pid;
error_log ./test/log/nginx-error.log;
events {
worker_connections 1024;
}
http {
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
#ssl_prefer_server_ciphers on;
#ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
access_log ./test/log/nginx-access.log;
error_log ./test/log/nginx-error.log;
server {
listen 3000 default_server;
listen [::]:3000 default_server;
#listen [::]:3000 ssl http2 ipv6only=on;
#listen 3000 ssl http2;
#ssl_certificate keys/demoCA/local162.org.crt;
#ssl_certificate_key keys/demoCA/local162.org.key;
charset UTF-8;
root .;
index index.html;
server_name _;
#add_header Service-Worker-Allowed /;
add_header Access-Control-Allow-Origin *;
#add_header Cache-Control max-age=86400;
location ~ ^/([^/]*\.js) {
alias test/instrumented/$1;
}
location / {
try_files $uri =404;
}
}
}