Тёмный

How to: NGINX with QUIC/HTTP3 

BR Consulting SRL
Подписаться 33
Просмотров 2 тыс.
50% 1

Resources used for the video:
nginx.org/en/docs/quic.html#c...
nginx.org/en/linux_packages.html
NGINX Snippets
docs.brconsulting.info/en/doc...
Timestamps:
00:00 - Intro
00:18 - Configuring the NGINX Repository
04:30 - Installing NGINX
04:56 - Warning for those who Update from Old Stable 1.18
05:49 - Creating a VHost to Test QUIC/HTTP3
07:03 - What options to use on the vhost config
09:57 - Useful OpenSSL Options for QUIC
10:21 - Testing QUIC/HTTP3
13:00 - Extra comments and recommendations

Наука

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@aligrafix1985
@aligrafix1985 26 дней назад
Thank you for the tutorial, I am able to make nginx to work as http/3!
@vVaIker
@vVaIker 9 месяцев назад
Very detailed video! Handy to have bookmarked when needed 👌
@user-ru1fn2ww9l
@user-ru1fn2ww9l 6 месяцев назад
I knew I needed a ssl certificate, it was fantastic
@ezekielndubisi541
@ezekielndubisi541 8 месяцев назад
Wow!!!!!!! This is the best video I have seen online. Thank you for the detailed explanation. I have struggled to have it work on my local IP having created a self signed certificate but it doesn't work. I now understand that I have to use a live domain. I will go ahead once again and reproduce your steps. Very much appreciated!! Many thanks
@brconsultingsrl
@brconsultingsrl 8 месяцев назад
Let me know if you run into any issues! Good luck with that 😄
@ezekielndubisi541
@ezekielndubisi541 8 месяцев назад
@@brconsultingsrl Thank you so much for your response and offer of assistance. I successfully installed Nginx by following all the steps you used. However, I cannot access my webserver using my domain name. Localhost loads my page but my domain doesn't. I configured DNS with my public IP and yet. Checking for further tip
@ezekielndubisi541
@ezekielndubisi541 8 месяцев назад
I was able to replicate your steps all everything works as you showed us but H3 does not display when I select >> Network >> Protocol under developer tools. It still resort to H2. However, the header shows that it does support H3 just as in your case. I discovered that the issue is that OpenSSL doesnt support QUIC for H3 users at the moment and Nginx recommends the following libraries: BoringSSL, quicTLS, and LibreSSL.
@dblanque
@dblanque 8 месяцев назад
@@ezekielndubisi541 Hi Ezekiel. A few questions: - What browsers are you testing this on? - What NGINX Version are you running, did you install the one provided in the NGINX Linux Repositories? - Are you using an FQDN? - Is the SSL Certificate valid for that FQDN? Bear in mind HTTP3/QUIC will not be "fully" enabled on first load (only on second page refresh), as the first packets are transferred through HTTP1.1/HTTP2 until the QUIC Headers are read by the browser. Current known behavior is: Initial Page load is on HTTP2 (1.1 if HTTP2 not enabled), next page reloads are all in HTTP3 if QUIC port functional.
@oscardacat
@oscardacat 2 месяца назад
@@ezekielndubisi541 I just spent 2 days trying to make this work and I finally RTFM lol. No, it does not work for me either and I'm guessing OpenSSL is the reason why.
@enriquedb666
@enriquedb666 2 месяца назад
isnt quic still experimental?
@naomarik
@naomarik 18 дней назад
I've tried everything and for some reason quic isn't working on my site. The last possible difference of things I have different from you are the ssl certificate and key. I even used nmap to ensure udp was open on port 443. What did you use to generate that ssl certificate?
@dblanque
@dblanque 5 дней назад
QUIC will not work properly with self-signed certificates (may be intentional and part of the standard). You need an actual legitimate SSL cert from an entity like Let's Encrypt.
@faheemsulehri4746
@faheemsulehri4746 4 месяца назад
Can i use ssl cert generated using openssl , signed by local CA and root cert i have installed in trusted root store too
@dblanque
@dblanque 3 месяца назад
Hey, I'm not entirely sure but I believe I tried it with a self-signed cert and it didn't work. Feel free to test it out but it might not work.
@steveholdoway1519
@steveholdoway1519 3 месяца назад
why use sudo when logged in as root?
@dblanque
@dblanque 3 месяца назад
It's not necessary, just doing it in the video for whoever is watching in the event they might forget to exec the command as root/sudo. Regards, Dylan
@wanarchives
@wanarchives 2 месяца назад
is this method still works? or better refer for nginx docs?
@wanarchives
@wanarchives 2 месяца назад
i got error after updating the conf file, i access my site got security policy called HTTP Strict Transport Security (HSTS), ssl i use letsencrypt before using the http3
@dblanque
@dblanque 2 месяца назад
The video is based on the official nginx docs, and trial and error, so it includes many things from the docs. If you want to build NGINX from the source-code (which our video clearly doesn't include) you should check the official documentation! Otherwise it's pretty much the same, ymmv based on what settings you need for your own use cases. Cheers, -D
@jacksoncremean1664
@jacksoncremean1664 8 месяцев назад
I've tried setting up QUIC on my Nginx reverse proxy and I had some issues with requests being sent to the wrong server block, looks like I misconfigured my Nginx based on this video so I'll be giving QUIC another try. Hopefully, all turns out well and I won't be burned again by trying an experimental feature in production.
@dblanque
@dblanque 8 месяцев назад
That is most likely a server block issue, QUIC/HTTP3 should not affect server block direction/redirection any more than HTTP2 would, so it's likely unrelated. Also, don't test in production. Edit: Feel free to share the config, I can lend a hand. Also, I've left some NGINX Reverse Proxy snippets in the description, might be useful for you.
@jacksoncremean1664
@jacksoncremean1664 8 месяцев назад
@@dblanqueI've given it another go and I still have the same issue, my modsecurity logs shows that a host header was never sent by the client (puzzling) and all HTTP/3 request are being sent to the default_server block instead of the correct server block.
@jacksoncremean1664
@jacksoncremean1664 8 месяцев назад
@@dblanque found the issue, it was indeed a server block configuration issue I had to specify a listen quic and listen ssl directive for each server block but I'm still seeing empty/missing host headers, is that normal? ModSecurity doesn't like empty host headers and will try and block the request.
@dblanque
@dblanque 8 месяцев назад
@@jacksoncremean1664 Awesome :) Yes, listen quic has to be specified per block, what needs to be specified only once is the reuseport socket option. As for the headers, I left snippets on the desc but you'll basically have to add them per each server block root location. Edit: Empty headers is not normal.
@jacksoncremean1664
@jacksoncremean1664 8 месяцев назад
​@@dblanqueI should clarify, I mean the host header is missing and not empty, I group these together in my mind. I don't think it's a header config issue, I've tried your code snippets and they didn't fix the host header missing in HTTP/3 requests (Which I didn't expect them to). ModSecurity is running on my reverse proxy, I won't be able to use ModSecurity CRS properly since all my rule exclusions depend on host headers. Maybe it's a bug in Nginx or ModSecurity that's somehow stripping the host header?
@aesthesia5023
@aesthesia5023 9 месяцев назад
😭😭 Holy shit bro, how do you do it??
Далее
Everything You Need to Know About QUIC and HTTP3
29:20
Nginx Rate Limiting | Docker
41:05
Просмотров 7 тыс.
Best exercises to lose weight ! 😱
00:19
Просмотров 4,3 млн
TailsOS Guide For The Ultra Paranoid
35:32
Просмотров 411 тыс.
What is a Protocol? (Deepdive)
18:14
Просмотров 162 тыс.
React Removes `fetch`
19:20
Просмотров 72 тыс.
I legally defaced this website.
25:48
Просмотров 510 тыс.
Linus Torvalds On Future Of Desktop Linux
44:18
Просмотров 358 тыс.
Apache vs NGINX
7:53
Просмотров 269 тыс.
You want a real DNS Server at home? (bind9 + docker)
32:31
Ноутбук за 20\40\60 тысяч рублей
42:36
Новодельный ноутбук Pocket386
1:16:17