events {
    worker_connections 1024;
}

http {
    server {
        listen      8000;
        listen      [::]:8000;
        server_name localhost;

        location /author_service/ {
            proxy_pass       http://author_service:8008/;
            proxy_set_header Host      $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Proto $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Prefix $scheme;
        }

        location /publication_service/ {
            proxy_pass       http://publication_service:8009/;
            proxy_set_header Host      $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Proto $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Prefix $scheme;
        }
    }
}