Skip to content

Commit

Permalink
Update btc-explorer.com.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
janoside authored Dec 10, 2017
1 parent 66e334b commit 347afad
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions docs/btc-explorer.com.conf
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
## http://domain.com redirects to https://domain.com
server {
server_name btc-explorer.com;
listen 80;
#listen [::]:80 ipv6only=on;

include /etc/nginx/snippets/letsencrypt.conf;
server_name btc-explorer.com;
listen 80;
#listen [::]:80 ipv6only=on;

location / {
return 301 https://btc-explorer.com$request_uri;
}
}


## Serves httpS://domain.com
server {
server_name btc-explorer.com;
listen 443 ssl http2;
#listen [::]:443 ssl http2 ipv6only=on;
server_name btc-explorer.com;
listen 443 ssl http2;
#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 / {
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;
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;
}
}

0 comments on commit 347afad

Please sign in to comment.