listen 443 ssl http2; include /etc/nginx/conf.d/include/ssl-settings; include /etc/nginx/conf.d/include/init-optional-variables; # Uncomment to launch new Dashboard under /v2 path location / { proxy_pass http://dashboard-v2:9000; } location /health { proxy_pass http://accounts:3000; } location /api { rewrite /api/(.*) /$1 break; proxy_pass http://accounts:3000; } location /api/register { include /etc/nginx/conf.d/include/cors; rewrite /api/(.*) /$1 break; proxy_pass http://accounts:3000; } location /api/user/pubkey/register { include /etc/nginx/conf.d/include/cors; rewrite /api/(.*) /$1 break; proxy_pass http://accounts:3000; } location /api/login { include /etc/nginx/conf.d/include/cors; rewrite /api/(.*) /$1 break; proxy_pass http://accounts:3000; } location /api/logout { include /etc/nginx/conf.d/include/cors; rewrite /api/(.*) /$1 break; proxy_pass http://accounts:3000; }