mirror of
https://github.com/janoside/btc-rpc-explorer.git
synced 2026-08-13 12:33:13 +02:00
Create explorer.btc21.org.conf
This commit is contained in:
parent
154504690c
commit
0cfe05e67c
1 changed files with 32 additions and 0 deletions
32
docs/explorer.btc21.org.conf
Normal file
32
docs/explorer.btc21.org.conf
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
## http://domain.com redirects to https://domain.com
|
||||
server {
|
||||
server_name explorer.btc21.org;
|
||||
listen 80;
|
||||
#listen [::]:80 ipv6only=on;
|
||||
|
||||
location / {
|
||||
return 301 https://explorer.btc21.org$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
## Serves httpS://domain.com
|
||||
server {
|
||||
server_name explorer.btc21.org;
|
||||
listen 443 ssl http2;
|
||||
#listen [::]:443 ssl http2 ipv6only=on;
|
||||
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
ssl_dhparam /etc/ssl/certs/dhparam.pem;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:3002;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue