-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
29 lines (22 loc) · 699 Bytes
/
nginx.conf
File metadata and controls
29 lines (22 loc) · 699 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
worker_processes auto;
events {
worker_connections 1024;
}
http {
log_format quic '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$http3"';
access_log /dev/stdout quic;
server {
listen 8443 ssl http2;
listen 443 http3 reuseport;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_certificate certs/server.crt;
ssl_certificate_key certs/server.key;
location / {
return 200 "Hello,HTTP3";
add_header Alt-Svc 'h3=":443"; ma=86400';
add_header QUIC-Status $http3;
}
}
}