PMM Container custom URL/Port


I would like to customize the default setup for this not to take me to http://IP. I would like to manage this container in Apache vhost. How would you set it up to go to https://internalIP/pmm/?

I am new to containers and PMM but I would like this to be behind SSL/TLS via HTTPS and add the URL to include /pmm/ so it doesnt become the root URL. I would also like this not to be exposed on the external IP only the internal eth1 IP.


it is impossible to change base URL inside PMM Server container itself because PMM Client relies on such urls like .

it is possible to configure PMM to work via SSL, see

You can setup server and clients inside the private network and don’t expose PMM interface to the public internet.
If you want – you can configure independently installed HTTP reverse proxy (like nginx or apache) for exposing PMM interface via public URL like https://internalIP/pmm/
keep in mind that you need to configure rewriting rules on your reverse proxy, like in the following nginx example

rewrite ^/pmm$ /pmm/;
location /graph {
proxy_pass http://PMM-SERVER-IP:80;
rewrite ^/pmm/(.*) /$1 break;

Can you please help me with Nginx configuration to expose PMM interface via URL like (or just if that’s easier).

Currently with the config below only Grafana works but other features like “PMM Query Analytics” or “PMM Add Instance” don’t:

location ^~ /graph/ {
access_log off;
proxy_pass http://pmm-server;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Authorization "";
proxy_max_temp_file_size 0;
proxy_buffer_size 4K;
proxy_buffers 64 4k;