Skip to content

Commit

Permalink
Full SSL/password support now including QAN.
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vynar committed Sep 8, 2016
1 parent c16fae0 commit 34845ea
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Percona Monitoring and Management (PMM) Server

v1.0.4 unreleased 2016-09-02
v1.0.4 unreleased 2016-09-08

* Grafana 3.1.1.
* Prometheus 1.0.2.
* Added SSL and HTTP password support. Currently, only Prometheus, Consul APIs and QAN app are protected.
* No extra `alias` label for Prometheus.
* Added SSL and HTTP password protection.
* No extra `alias` label on Prometheus.
* Query Analytics App:
* added sparkline charts to metrics
* added search by query fingerprint
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ services:
- METRICS_RETENTION=720h
- METRICS_MEMORY=262144
- METRICS_RESOLUTION=1s
# - HTTP_USER=pmm
# - HTTP_PASSWORD=abc123
# - SERVER_USER=pmm
# - SERVER_PASSWORD=abc123
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if [ -e /etc/nginx/ssl/server.crt ] && [ -e /etc/nginx/ssl/server.key ]; then
fi
fi

if [ -n "$HTTP_PASSWORD" ]; then
echo "${HTTP_USER:-pmm}:$(openssl passwd -apr1 $HTTP_PASSWORD)" > /etc/nginx/.htpasswd
if [ -n "$SERVER_PASSWORD" ]; then
echo "${SERVER_USER:-pmm}:$(openssl passwd -apr1 $SERVER_PASSWORD)" > /etc/nginx/.htpasswd
sed -i 's/auth_basic off/auth_basic "PMM Server"/' /etc/nginx/nginx.conf

# Disable Grafana HTTP auth
Expand Down
9 changes: 5 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ http {
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen *:80;
server_name _;
Expand Down Expand Up @@ -66,11 +70,8 @@ http {
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400;

# Temporary until agent supports this.
auth_basic off;
}
}
}
Expand Down

0 comments on commit 34845ea

Please sign in to comment.