i\'m using this configuration for nginx:
server { listen 7777 ssl default_server; resolver 8.8.8.8; ssl_certificate /etc/nginx/cert.cr