Cannot Connect To Portal


#21

Hi Folks,

I was trying to install using quickstart https://github.com/TykTechnologies/tyk-pro-docker-demo in an EC2.

Wonder if anyone attempted it by fronting with a reverse proxy?

I am able to access to dashboard with the ec2 public dns, but no avail if i try accessing the developer portal.

Within the EC2 instance, i can get a response from http://www.tyk-portal-test.com:3000/portal/ and http://www.tyk-test.com:3000 after appending them into /etc/hosts.

My nginx config

server {
  listen 80;
  server_name ec2.public.dns;
  access_log    /var/log/nginx/access.log main;

  location / {
    proxy_set_header        Host $host:$server_port;
    proxy_set_header        X-Real-IP $remote_addr;
    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header        X-Forwarded-Proto $scheme;
    proxy_pass              http://www.tyk-test.com:3000;
  }

  location /portal {
    proxy_set_header        Host $host:$server_port;
    proxy_set_header        X-Real-IP $remote_addr;
    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header        X-Forwarded-Proto $scheme;
    proxy_pass              http://www.tyk-portal-test.com:3000/portal/;
  }
}

I tested in my local machine, so its all good. Just that if you want to tinker with the configurations, please remember to purge the docker volume.