Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment of cube with nginx proxy #6777

Open
ommore1523 opened this issue Jun 30, 2023 · 1 comment
Open

Deployment of cube with nginx proxy #6777

ommore1523 opened this issue Jun 30, 2023 · 1 comment
Labels
question The issue is a question. Please use Stack Overflow for questions.

Comments

@ommore1523
Copy link

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 .

@ommore1523 ommore1523 added the question The issue is a question. Please use Stack Overflow for questions. label Jun 30, 2023
@paveltiunov
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue is a question. Please use Stack Overflow for questions.
Projects
None yet
Development

No branches or pull requests

2 participants