user www-data; worker_processes 1; pid /run/nginx.pid; events { worker_connections 768; } http { server { listen 443 default_server ssl; ssl_certificate server.crt; ssl_certificate_key server.key; auth_basic "Restricted to operators"; auth_basic_user_file .htpasswd; location /shell/ { proxy_pass http://localhost:4200; } } }