Answer the question
In order to leave comments, you need to log in
Error accessing the server?
Tell me please. On Android 4.4.2 (in the background, the server is polled every 2 seconds), an error periodically pops up:
SSL handshake aborted: ssl = 0x592e87d8:
Failure in SSL library, usually a protocol error
error: 14077410: SSL routines: SSL23_GET_SERVER_HELLO:
sslv3 alert handshake failure (external / openssl / ssl / s23_clnt.c:
741 0x54eafd74: 0x00000000)
# disable when not https
ssl_certificate /etc/letsencrypt/live/some-site.cf/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/some-site.cf/privkey.pem;
server {
listen 80;
listen [::]:80; #Added IPv6 here too
server_name $host;
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
# remove "ssl" when not https
listen 8090 ssl;
listen [::]:8090 ssl;
server_name $host;
server_tokens off;
proxy_ssl_server_name on;
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
location / {
proxy_pass http://app:8080;
}
}
server {
# remove "ssl" when not https
listen 443 ssl;
listen [::]:443 ssl;
root /var/www/site;
# for SPA
location / {
try_files $uri $uri/ /index.html;
}
}
proxy_ssl_server_name on;
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question