Comments (5)
LogViewer works in https://somehost:8111/ , and nginx map it to https://somehost/logs , correct?
You can try to run log-viewer on https://somehost:8111/ using log-viewer.server.context-path="/logs"
variable. (supported since 0.1.7)
Does nginx passes the original URL to log-viewer somehow?
from log-viewer.
yes, this works perfect with the IP:PORT
I tried by setting context-path as you suggested.
but when we put it behind nginx, the js and css file are getting 404.
the url currently generated:
https://somehost/styles.c169595171167aaa32f0.css
It should be
https://somehost/logs/styles.c169595171167aaa32f0.css
nginx configuration is as below.
location /logs {
include /etc/nginx/includes/proxy.conf;
proxy_pass http://someip:8111/logs;
from log-viewer.
Got it.
Please, try this https://github.com/sevdokimov/log-viewer/releases/tag/0.1.8-SNAPSHOT release, the problem must be fixed.
from log-viewer.
@sevdokimov this worked. Thanks for the quick support.
from log-viewer.
My config Nginx :
location /logs {
root /usr/share/nginx/html/log-viewer-1.0.3/;
proxy_pass http://127.0.0.1:8111;
}
from log-viewer.
Related Issues (20)
- request feature HOT 1
- ssh configuration HOT 2
- Adding additional file extensions HOT 2
- embed wildfly app
- Live tail behind AWS ELB
- Request for https/ssl for the "log-viewer-cli" application
- Spring boot 3.0+ HOT 9
- Configuration for running behind reverse proxy. HOT 1
- Docker version ? HOT 1
- When having char @ in directory name, app won't be able to locate file.
- jdk 21 HOT 3
- mistake - delete this issue
- 1.0.8 Failed to read log HOT 5
- Add support format: in log-paths
- Can't work with Spring Security in Spring boot 3. HOT 5
- Log-viewer to open CSV file HOT 1
- 'log encoder pattern contains unsupported terms' using with springboot.
- How to limit the content displayed in logs?
- LogViewerServlet still reference to javax.servlet.http.HttpServlet, unable to use it in spring boot 3.
- It does not tail
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 log-viewer.