Comments (6)
try this:
location /logs {
return 302 /logs/;
}
location /logs/ {
proxy_pass http://127.0.0.1:5080;
}
You need remove the last slash in proxy_pass
.
And set
ZO_BASE_URI = "/logs"
for OpenObserve.
from openobserve.
maybe you can delete this section:
location ~* ^.+\.css$ {
default_type text/css;
}
location ~* ^.+\.js$ {
default_type text/javascript;
}
default it should be no problem.
from openobserve.
I had tried several variations of the proxy_pass
but could not get it to work. The ZO_BASE_URI
is what I was missing.
Thank you!
from openobserve.
I have ZO_BASE_URI=/openobserve
. And I have the following nginx config:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
proxy_max_temp_file_size 0;
root /app/web/dist;
location /api {
proxy_pass http://0.0.0.0:8089;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /openobserve {
return 302 /openobserve/;
}
location /openobserve/ {
proxy_pass http://0.0.0.0:5080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location / {
try_files $uri $uri/ /index.html;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
location ~* ^.+\.css$ {
default_type text/css;
}
location ~* ^.+\.js$ {
default_type text/javascript;
}
index index.html index.htm;
access_log /dev/stdout;
}
Nginx error:
2023/08/15 06:40:17 [error] 7#7: *22 open() "/app/web/dist/openobserve/web/assets/index.05ee9c02.css" failed (2: No such file or directory)......."
How can I fix it?
from openobserve.
Solved by adding two additional locations:
location ~* /openobserve/web/assets/.+\.js$ {
proxy_pass http://0.0.0.0:5080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location ~* /openobserve/web/assets/.+\.css$ {
proxy_pass http://0.0.0.0:5080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
maybe there's a better way?
from openobserve.
@hengfeiyang
Yes, much better, thank you!
from openobserve.
Related Issues (20)
- Pipeline- User is allowed to add pipeline with same name and different stream name but blank page displayed for all the pipelines created with this name
- Permission for all functionalities under a role granted but user still getting 403
- Permission- Change of user role not working after SSO user via Existing user option
- Pagination works for first few times but re-running automation test displayed the test failed
- Pipelines- Remove confirmation message on clicking back icon, when user has already saved changes
- Logs- Histogram not loading when user navigates from stream explorer to saved view
- Nanoseconds is missing from Dashboard Config Panel
- Permissions- Giving List/Get permission still gives error 403 to user role for settings
- Dashboard- Data available for 2 weeks but on setting date time under General settings -the dashboard appears blank HOT 1
- Stream settings- On re-adding the user defined schema to the list, settings UI appears in loading state HOT 2
- Streams - Multiple entries of the new added field start appearing if this added stream is selected under user defined schema
- Logs- navigating from empty stream to stream with data displays infinite loading HOT 1
- Simply encoding SQL in base64 for transmission will not bypass the WAF gateway HOT 2
- Report issues
- Logs- Searching for absolute date range is giving error on UI but search API giving proper results
- Permission related issues for admin user
- Dashboard Reports
- Logs: Count mismatch on UI for a selected field values
- Multiple field selection in stream settings
- Metrics- performance optimisation - Streams selection not displayed but results appear
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openobserve.