forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the
http
block in the conf.d dir (#7)
- Loading branch information
Showing
1 changed file
with
17 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |