forked from nginx/nginx-quic-qns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf.nodebug
More file actions
42 lines (31 loc) · 757 Bytes
/
Copy pathnginx.conf.nodebug
File metadata and controls
42 lines (31 loc) · 757 Bytes
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
daemon off;
user root;
error_log /dev/stdout info;
events {
worker_connections 1024;
}
http {
access_log /dev/stdout;
ssl_certificate /certs/cert.pem;
ssl_certificate_key /certs/priv.key;
# quic requires TLS 1.3
ssl_protocols TLSv1.2 TLSv1.3;
# enable 0-RTT
ssl_early_data on;
ssl_session_tickets on;
keepalive_requests 5000;
server {
server_name localhost;
listen *:443 ssl;
listen *:443 quic reuseport;
listen [::]:443 ssl;
listen [::]:443 quic reuseport;
http3_hq on;
add_header Alt-Svc 'hq-29=":443"';
location / {
root /www;
}
}
include mime.types;
default_type application/octet-stream;
}