cube-js / cube

📊 Cube — The Semantic Layer for Building Data Applications
https://cube.dev
Other
17.92k stars 1.78k forks source link

Deployment of cube with nginx proxy #6777

Open ommore1523 opened 1 year ago

ommore1523 commented 1 year ago

Hi i have configured cube on server with ip http://127.0.0.1:61000/ . I wanted to run cube via nginx with staic ip of my server

Nginx configuration :

location/cubejs/ {
       # proxy_set_header Host $http_host/cubejs;
      # proxy_set_header X-Real-IP $remote_addr;
      # proxy_set_header X-Scheme $scheme;
      #  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       # proxy_set_header X-Forwarded-Proto $scheme;
        #proxy_redirect    off;
       # add_header Pragma "no-cache";
        #add_header Cache-Control "no-cache";

        proxy_pass http://127.0.0.1:61000/;
        sub_filter 'action="/'  'action="/cubejs/';
        sub_filter 'href="/'  'href="/cubejs/';
        sub_filter 'src="/'  'src="/cubejs/';
        sub_filter_once off;
    }

Issue is loader only spinning on ui without any error

Error Image :

cube

If i removes the subfilter css files and js files do not loads .

paveltiunov commented 1 year ago

@ommore1523 Dev server Playground isn't designed to be run behind a load balancer. If you want to provide a secure environment for dev collaboration, consider using Cube Cloud.