Hello Everyone,

I'm hoping someone might provide a bit of assistance here.

Here's what I have:
OpenSim 8.1Dev running in grid/hypergrid mode.
Things work well.. no issues at all.. I'm able to hypergrid in and out.. no issues.

Here's what I'm trying to do:
I have create 3 separate instances of Robust running on 3 different sets of ports.. for now, all are on the same machine but I want to move each robust instance to a separate machine and use nginx to forward requests from ports 8002 and 8003 to the correct machine and ports based on least number of connections.
Robust1 uses ports 8012 and 8013
Robust2 uses ports 8022 and 8023
Robust3 uses ports 8032 and 8033

I have setup nginx and all seems to work well with a direct login to my grid using the forward facing ports in nginx and I can hypergrid out to other grids and hypergrid back. The problem comes when use a direct login on another grid and try to hypergrid out to my grid... I get a TP error saying it was unable to verify my identity.

If I open the map on the "other" grid and search for my grid/region using: mygrid.mydomain.com:8002:myregion I can find my region, but when trying to tp there I get the error mentioned above.

I can tp from that grid if I go around my nginx setup using one of the ports from the 3 running robust instances directly so I'm thinking my problem is in my nginx setup.

My nginx config file includes (ip address is a dummy address for this post):

http {
  upstream backendservers {
        least_conn;
        server 111.111.111.111:8012    max_fails=3  fail_timeout=5s;
        server 111.111.111.111:8022    max_fails=3  fail_timeout=5s;
        server 111.111.111.111:8032    max_fails=3 fail_timeout=5s;
        }

    server {
        listen 8002;
        location / {
            proxy_set_header X-Real-IP $http_x_forwarded_for;
            proxy_set_header X-Forwarded-For $remote_addr;
            proxy_set_header Host $http_host;
            proxy_set_header X-NginX-Proxy true;
            proxy_pass http://backendservers;
            proxy_redirect off;
            }
        }
    }

http {
  upstream backendservers {
    least_conn;
    server 111.111.111.111:8013    max_fails=3  fail_timeout=5s;
    server 111.111.111.111:8023    max_fails=3  fail_timeout=5s;
    server 111.111.111.111:8033    max_fails=3  fail_timeout=5s;
  }

  server {
    listen 8003;
    location / {
            proxy_set_header X-Real-IP $http_x_forwarded_for;
            proxy_set_header X-Forwarded-For $remote_addr;
            proxy_set_header Host $http_host;
            proxy_set_header X-NginX-Proxy true;
            proxy_pass http://backendservers;
            proxy_redirect off;

    }
  }

Any ideas what I'm doing wrong with the nginx setup??

Thank-you.
_______________________________________________
Opensim-users mailing list
Opensim-users@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users

Reply via email to