Http 3.0 其實(shí)從最開設(shè)到正式的使用,已經(jīng)過去了不少時(shí)間了,這塊也是關(guān)系到我們現(xiàn)在數(shù)據(jù)安全一塊很重要的發(fā)展,后續(xù)我們應(yīng)該不在會(huì)有明文加密的協(xié)議的存在了吧,只是在加密的基礎(chǔ)上,不斷的升級(jí)現(xiàn)在的加密方法與技術(shù)升級(jí),從而更高的保障我們的數(shù)據(jù)傳輸?shù)母咝c安全。并且我們也會(huì)在這路上不斷的成長升級(jí),保障我的自己信息的安全與我們用戶的信息內(nèi)容的安全。
Nginx如何實(shí)現(xiàn) Http 3.0呢?
Http 3.0 又稱 Quic 協(xié)議,我們也會(huì)基于CF 公司提供的Path 讓我們的Http 服務(wù)更安全文章來源:http://www.zghlxwxcb.cn/news/detail-495758.html
Nginx Http 3.0 編譯安裝
% curl -O https://nginx.org/download/nginx-1.16.1.tar.gz
% tar xvzf nginx-1.16.1.tar.gz
% git clone --recursive https://github.com/cloudflare/quiche
% cd nginx-1.16.1
% patch -p01 < ../quiche/extras/nginx/nginx-1.16.patch
% ./configure \
--prefix=$PWD \
--with-http_ssl_module \
--with-http_v2_module \
--with-http_v3_module \
--with-openssl=../quiche/deps/boringssl \
--with-quiche=../quiche
% make
Nginx Http 3.0的 配置
events {
worker_connections 1024;
}
http {
server {
# Enable QUIC and HTTP/3.
listen 443 quic reuseport;
# Enable HTTP/2 (optional).
listen 443 ssl http2;
ssl_certificate cert.crt;
ssl_certificate_key cert.key;
# Enable all TLS versions (TLSv1.3 is required for QUIC).
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
# Add Alt-Svc header to negotiate HTTP/3.
add_header alt-svc 'h3-23=":443"; ma=86400';
}
}
參考
讓您的Nginx支持Http 3.0 協(xié)議
Experiment with HTTP/3 using NGINX and quiche文章來源地址http://www.zghlxwxcb.cn/news/detail-495758.html
到了這里,關(guān)于讓您的Nginx支持Http 3.0 協(xié)議的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!