Here is the config:
#HTTP - redirect all requests to HTTPS: server { listen 80; listen [::]:80 default_server ipv6only=on; return 301 https://$host$request_uri; } HTTPS - proxy requests on to local Node.js apps server { listen 443 default_server; server_name ΠΌΠΎΠΉΠ΄ΠΎΠΌΠ΅Π½.com; ssl on; # Use certificate and key provided by Let's Encrypt: ssl_certificate /etc/letsencrypt/live/dsa.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/sad.com/privkey.pem; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; # Pass requests for / to localhost:8080: location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; proxy_pass http://localhost:8080/; proxy_ssl_session_reuse off; proxy_set_header Host $http_host; proxy_cache_bypass $http_upgrade; proxy_redirect off; } } look it works on htpps. I tried
server { listen ΠΌΠΎΠΉ_ip:80 default_server; server_name _; return 444; } and / or
server { listen ΠΌΠΎΠΉ_ip:443 default_server; server_name _; return 444; } The site is dead.
And of course I restart nginx'a
Nginx proxies node.js
And is it possible to disable the error log (spec. Introduced ./4524) 
Thank!
It is necessary to close access to the site by ip And leave only access by the domain name.