Skip to content

Commit

Permalink
Development: Enable http3 for test servers (#9232)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensofficial authored and JohannesWt committed Sep 23, 2024
1 parent 9434e64 commit ce27645
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
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
12 changes: 10 additions & 2 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 @@ -36,6 +43,7 @@ server {
ssl_stapling on;
ssl_stapling_verify 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';
}

location /api/authenticate {
Expand Down

0 comments on commit ce27645

Please sign in to comment.