Skip to content

Commit

Permalink
increase nginx config security, add early_preload for future http3, a…
Browse files Browse the repository at this point in the history
…dd 443 udp port
  • Loading branch information
paskal committed Jun 4, 2023
1 parent 05dae05 commit 23f416a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ http {
map_hash_bucket_size 512;
# increase concurrency performance
keepalive_requests 1000;
http2_push_preload on;

map $remote_addr $not_logging {
default 1;
Expand Down Expand Up @@ -99,7 +100,7 @@ http {
# intermediate configuration
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
ssl_prefer_server_ciphers on;

# OCSP stapling
ssl_stapling on;
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ services:
- updater
ports:
- "80:80"
- "443:443"
- "443:443/tcp"
- "443:443/udp"
expose:
- "8084"
volumes:
Expand Down

0 comments on commit 23f416a

Please sign in to comment.