Skip to content

Commit

Permalink
fix(nginx): remove the http block in the conf.d
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Ivleev committed May 27, 2024
1 parent 81bf377 commit 6dcc313
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions docker/nginx/conf.d/app.conf
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 6dcc313

Please sign in to comment.