cube-js / cube-js/cube

Deployment of cube with nginx proxy

Open
#6,777 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

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 :

```bash
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](https://github.com/cube-js/cube/assets/52170865/1c3f5c2d-771f-4fd5-8275-8d28ace62463)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.