① nginx.conf
worker_processes 4;
events {
accept_mutex on;
multi_accept on;
worker_connections 1024;
use epoll;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
log_format quic '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" ';
access_log logs/access.log quic;
upstream backend{
server 192.168.6.153:9090;
server 192.168.6.155:9090;
}
server {
listen 8443 quic reuseport;
listen 8443 ssl;
ssl_certificate certs/www.xxx.top_bundle.pem;
ssl_certificate_key certs/www.xxx.top.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
server_name www.xxx.top;
location / {
add_header Alt-Svc 'h3=":8443"; ma=86400';
proxy_pass http://backend;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
② 发送Post请求
https://www.xxx.top:8443/compositeKey/dataProvenance