From 6dcc313eb583095273a9c11a84efbcbeead80e00 Mon Sep 17 00:00:00 2001 From: Ivan Ivleev Date: Mon, 27 May 2024 15:20:09 +0300 Subject: [PATCH] fix(nginx): remove the `http` block in the conf.d --- docker/nginx/conf.d/app.conf | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/docker/nginx/conf.d/app.conf b/docker/nginx/conf.d/app.conf index 946f8ef8d387..6d317eda3e37 100644 --- a/docker/nginx/conf.d/app.conf +++ b/docker/nginx/conf.d/app.conf @@ -1,28 +1,26 @@ -http { - server { - listen 80; - listen [::]:80; +server { + listen 80; + listen [::]:80; - server_name polkadot-explorer.atleta.network www.polkadot-explorer.atleta.network; - server_tokens off; + server_name polkadot-explorer.atleta.network www.polkadot-explorer.atleta.network; + server_tokens off; - location /.well-known/acme-challenge/ { - root /var/www/certbot; - } + location /.well-known/acme-challenge/ { + root /var/www/certbot; + } - location / { - return 301 https://polkadot-explorer.atleta.network$request_uri; - } + location / { + return 301 https://polkadot-explorer.atleta.network$request_uri; } +} - server { - listen 443 ssl; +server { + listen 443 ssl; - ssl_certificate /etc/nginx/ssl/live/polkadot-explorer.atleta.network/fullchain.pem; - ssl_certificate_key /etc/nginx/ssl/live/polkadot-explorer.atleta.network/privkey.pem; + ssl_certificate /etc/nginx/ssl/live/polkadot-explorer.atleta.network/fullchain.pem; + ssl_certificate_key /etc/nginx/ssl/live/polkadot-explorer.atleta.network/privkey.pem; - location / { - root /usr/share/nginx/html; - } + location / { + root /usr/share/nginx/html; } }