server {
    listen      80;
    listen      [::]:80;
    server_name localhost;

    location /postservice/ {
        proxy_pass       http://postservice:80/;
		proxy_set_header Host      $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-Prefix /admin;
    }

    location /workerservice/ {
        proxy_pass       http://workerservice:80/;
		proxy_set_header Host      $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-Prefix /admin;
    }
}