server { listen *:443 ssl; server_name *domain_name*; access_log *path_to_log*/access.log main; error_log *path_to_log*/error.log error; ssl_certificate *path_to_cert*/fullchain.pem; ssl_certificate_key *path_to_cert*/privkey.pem; ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers "RC4:HIGH:!aNULL:!MD5:!kEDH"; location /api/ { proxy_pass *link_to_listen_api*; } root *path_to_web_dir*; index index.html; location / { index index.html; } }