Skip to content

Commit

Permalink
Remove the http block in the conf.d dir (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-tsurko authored May 27, 2024
2 parents 81bf377 + 6dcc313 commit d57b44f
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 d57b44f

Please sign in to comment.