Skip to content

Commit

Permalink
update nginx to 1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed May 30, 2024
1 parent 33e8292 commit 971421c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion config/nginx/conf.d/adminer.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
listen 443 http2 ssl;
listen 443 ssl;
ssl_certificate /etc/nginx/letsencrypt/live/favor-group.ru/fullchain.pem;
ssl_certificate_key /etc/nginx/letsencrypt/live/favor-group.ru/privkey.pem;
ssl_trusted_certificate /etc/nginx/letsencrypt/live/favor-group.ru/chain.pem;
Expand Down
4 changes: 2 additions & 2 deletions config/nginx/conf.d/cdn.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ map $http_origin $allow_origin {
}

server {
listen 443 http2 ssl;
listen 443 ssl;

server_name static.cdn-favor-group.ru;

Expand All @@ -16,7 +16,7 @@ server {
}

server {
listen 443 http2 ssl;
listen 443 ssl;

server_name dev.cdn-favor-group.ru;

Expand Down
2 changes: 1 addition & 1 deletion config/nginx/conf.d/dev-test.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
listen 443 http2 ssl;
listen 443 ssl;

server_name dev-test.favor-group.ru;

Expand Down
2 changes: 1 addition & 1 deletion config/nginx/conf.d/dev.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
listen 443 http2 ssl;
listen 443 ssl;

server_name dev.favor-group.ru;

Expand Down
2 changes: 1 addition & 1 deletion config/nginx/conf.d/hooks.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
listen 443 http2 ssl;
listen 443 ssl;
server_name hooks.favor-group.ru;
location / {
proxy_read_timeout 600;
Expand Down
6 changes: 3 additions & 3 deletions config/nginx/conf.d/prod.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
listen 443 http2 reuseport ssl;
listen 443 reuseport ssl;

server_name favor-group.ru;

Expand All @@ -19,7 +19,7 @@ server {
}

server {
listen 443 http2 ssl;
listen 443 ssl;

server_name spb.favor-group.ru;

Expand All @@ -39,7 +39,7 @@ server {
}

server {
listen 443 http2 ssl;
listen 443 ssl;

server_name tula.favor-group.ru;

Expand Down
4 changes: 2 additions & 2 deletions config/nginx/conf.d/redirects.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https www is a special case
server {
listen 443 ssl http2;
listen 443 ssl;
server_name www.favor-group.ru;
ssl_certificate /etc/nginx/letsencrypt/live/favor-group.ru/fullchain.pem;
ssl_certificate_key /etc/nginx/letsencrypt/live/favor-group.ru/privkey.pem;
Expand All @@ -25,7 +25,7 @@ server {
}

server {
listen 443 default_server ssl http2;
listen 443 default_server ssl;
ssl_certificate /etc/nginx/letsencrypt/live/favor-group.ru/fullchain.pem;
ssl_certificate_key /etc/nginx/letsencrypt/live/favor-group.ru/privkey.pem;
ssl_trusted_certificate /etc/nginx/letsencrypt/live/favor-group.ru/chain.pem;
Expand Down
4 changes: 3 additions & 1 deletion config/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ http {
keepalive_requests 1000;
# 0-RTT QUIC connection resumption
ssl_early_data on;
# http2 everywhere
http2 on;

map $remote_addr $not_logging {
default 1;
"158.101.196.116" 0;
"158.101.196.116" 0;
# add your monitoring IPs there
}

Expand Down

0 comments on commit 971421c

Please sign in to comment.