Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

btc-explorer.com.conf 818B

3 lat temu
1234567891011121314151617181920212223242526272829303132
  1. ## http://domain.com redirects to https://domain.com
  2. server {
  3. server_name btc-explorer.com;
  4. listen 80;
  5. #listen [::]:80 ipv6only=on;
  6. location / {
  7. return 301 https://btc-explorer.com$request_uri;
  8. }
  9. }
  10. ## Serves httpS://domain.com
  11. server {
  12. server_name btc-explorer.com;
  13. listen 443 ssl http2;
  14. #listen [::]:443 ssl http2 ipv6only=on;
  15. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  16. ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
  17. ssl_prefer_server_ciphers on;
  18. ssl_session_cache shared:SSL:10m;
  19. ssl_dhparam /etc/ssl/certs/dhparam.pem;
  20. location / {
  21. proxy_pass http://localhost:3002;
  22. proxy_http_version 1.1;
  23. proxy_set_header Upgrade $http_upgrade;
  24. proxy_set_header Connection 'upgrade';
  25. proxy_set_header Host $host;
  26. proxy_cache_bypass $http_upgrade;
  27. }
  28. }