Comments (2)
I'm no nginx expert but don't you need location ^~ /unsee
to pass all requests with the /unsee
prefix to unsee, not only "/unsee"
?
from unsee.
Got it !
This is the command to run in the container:
/usr/bin/alertmanager --config.file=/etc/alertmanager/alertmanager.yml --storage.path=/var/lib/alertmanager --web.listen-address=":9094"
/usr/bin/unsee --listen.prefix /unsee --alertmanager.uri http://127.0.0.1:9094
I'm also running cloudcommander for editing and uploading files:
/usr/bin/cloudcmd --prefix /edit --no-console --no-terminal --no-online --no-config-dialog --no-contact
this is what the nginx file should be ...
server {
listen 9093;
listen [::]:9093;
server_name _;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:9094;
proxy_redirect off;
# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /edit/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:8000;
proxy_redirect off;
# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /unsee/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Hope this can be of help to someone ...
from unsee.
Related Issues (20)
- Silence on proxied alertmanagers give a 404 HOT 4
- Feature: HTML safe annotations
- Feature: Create silences HOT 3
- Feature: Take username from http header HOT 3
- Upgrade moment.js
- Silence comments only appear after a while HOT 4
- How to add Alert manager name for each instance HOT 2
- [0.9.1] Silence on Proxied Alertmanagers returns 404 HOT 16
- WEB_PREFIX ENV not working HOT 2
- gin request metrics contain arbitrary URLs, resulting in high cardinality
- Credentials in URLs are not masked HOT 3
- Panic in semantic version parsing HOT 9
- Silences POST fails with 307 Temporary Redirect due to double-slash in URL HOT 2
- Support alertmanager 0.15.x HOT 5
- Add tls certs to the "curl" example command for silencing
- TLS works for getting alerts, but fails for sending silences? HOT 1
- Basic auth credentials in stdout HOT 1
- Hide top bar and optionally replace with customizable headline HOT 2
- Incompatibility with alertmanager 0.16.x HOT 7
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 unsee.