server { listen 80; server_name localhost; location /projectservice/ { proxy_pass http://projectservice:5001/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } location /taskservice/ { proxy_pass http://taskservice:5002/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } }