You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
The dashboard opens at https://myhost.com/pgwatch but when I inspect the html in browser, I get this.
To what I know about web, the base url is attached to the /static/bootstrap-4.3.1-dist/css/bootstrap.min.css to form {base_url}/static/bootstrap-4.3.1-dist/css/bootstrap.min.css to get the css file but what the expectation is that the css file should be requested from {base_url}/pgwatch/static/bootstrap-4.3.1-dist/css/bootstrap.min.css.
So one way to fix this is to change all the href's in the html file. But that isn't a good solution.
Grafana:
Also I changed root_url in
/usr/share/grafana/conf/defaults.ini
to
root_url = %(protocol)s://%(domain)s:%(http_port)s/pgwatch/grafana . For grafana, this didn't work. I got 502.
This discussion was converted from issue #716 on November 29, 2023 11:36.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am setting Pgwatch up behind a reverse proxy with nginx as follows.
Main dashboard:
For the main dashboard running at 8080, I tried to edit the
web.py
by replacing line https://github.com/cybertec-postgresql/pgwatch2/blob/master/webpy/web.py#L446with
cherrypy.quickstart(Root(), "/pgwatch", config=config)
The dashboard opens at
https://myhost.com/pgwatch
but when I inspect the html in browser, I get this.To what I know about web, the base url is attached to the
/static/bootstrap-4.3.1-dist/css/bootstrap.min.css
to form{base_url}/static/bootstrap-4.3.1-dist/css/bootstrap.min.css
to get the css file but what the expectation is that the css file should be requested from{base_url}/pgwatch/static/bootstrap-4.3.1-dist/css/bootstrap.min.css
.So one way to fix this is to change all the href's in the html file. But that isn't a good solution.
Grafana:
Also I changed
root_url
into
root_url = %(protocol)s://%(domain)s:%(http_port)s/pgwatch/grafana
. For grafana, this didn't work. I got 502.My nginx.conf file looks like this.
Please help with both the problems.
Beta Was this translation helpful? Give feedback.
All reactions