Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development: Enable http3 for test servers #9232

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docker/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ services:
hard: 1048576
ports:
- "80:80"
- "443:443"
- "443:443/tcp"
- "443:443/udp" # HTTP/3
- "7921:7921" # Git SSH
# expose the port to make it reachable docker internally even if the external port mapping changes
expose:
Expand Down
14 changes: 11 additions & 3 deletions docker/nginx/artemis-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ server {
}

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen 443 quic reuseport;
listen [::]:443 ssl;
listen [::]:443 quic reuseport;
http2 on;
http3 on;
http3_hq on;
quic_retry on;

server_name _;

ssl_certificate /certs/fullchain.pem;
Expand All @@ -35,7 +42,8 @@ server {
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
# ssl_early_data on;
ssl_early_data on;
quic_gso on;

include includes/artemis-server.conf;
}
2 changes: 2 additions & 0 deletions docker/nginx/artemis-server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ location / {
fastcgi_send_timeout 900s;
fastcgi_read_timeout 900s;
client_max_body_size 128M;
# used to advertise the availability of HTTP/3
add_header alt-svc 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could consider using persist=1 here to prevent these entries to be deleted when clearing the network config in the browser.

}

location /api/authenticate {
Expand Down
Loading