Dan Janosik
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
13 additions and
21 deletions
-
docs/btc-explorer.com.conf
|
@ -4,25 +4,17 @@ server { |
|
|
listen 80; |
|
|
listen 80; |
|
|
#listen [::]:80 ipv6only=on; |
|
|
#listen [::]:80 ipv6only=on; |
|
|
|
|
|
|
|
|
include /etc/nginx/snippets/letsencrypt.conf; |
|
|
|
|
|
|
|
|
|
|
|
location / { |
|
|
location / { |
|
|
return 301 https://btc-explorer.com$request_uri; |
|
|
return 301 https://btc-explorer.com$request_uri; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Serves httpS://domain.com |
|
|
## Serves httpS://domain.com |
|
|
server { |
|
|
server { |
|
|
server_name btc-explorer.com; |
|
|
server_name btc-explorer.com; |
|
|
listen 443 ssl http2; |
|
|
listen 443 ssl http2; |
|
|
#listen [::]:443 ssl http2 ipv6only=on; |
|
|
#listen [::]:443 ssl http2 ipv6only=on; |
|
|
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/btc-explorer.com/fullchain.pem; |
|
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/btc-explorer.com/privkey.pem; |
|
|
|
|
|
ssl_trusted_certificate /etc/letsencrypt/live/btc-explorer.com/fullchain.pem; |
|
|
|
|
|
include /etc/nginx/snippets/ssl.conf; |
|
|
|
|
|
|
|
|
|
|
|
location / { |
|
|
location / { |
|
|
proxy_pass http://localhost:3002; |
|
|
proxy_pass http://localhost:3002; |
|
|
proxy_http_version 1.1; |
|
|
proxy_http_version 1.1; |
|
|