diff --git a/roles/aurweb/templates/goaurrpc.conf.j2 b/roles/aurweb/templates/goaurrpc.conf.j2 index a36e5f9515fb02b585d28336ea6853bc1d7a5095..ab10b3d5197d83a085d0bfedbd82732127b8d44c 100644 --- a/roles/aurweb/templates/goaurrpc.conf.j2 +++ b/roles/aurweb/templates/goaurrpc.conf.j2 @@ -16,5 +16,6 @@ "KeyFile": "", "EnableSearchCache": true, "CacheCleanupInterval": 60, - "CacheExpirationTime": 180 + "CacheExpirationTime": 180, + "EnableMetrics": true } diff --git a/roles/aurweb/templates/nginx.d.conf.j2 b/roles/aurweb/templates/nginx.d.conf.j2 index 0ddfdea2afc507e3628264dfa657bd27f491b511..3d1cfb6ac1929ea406eeb389e828d7ca130d0bce 100644 --- a/roles/aurweb/templates/nginx.d.conf.j2 +++ b/roles/aurweb/templates/nginx.d.conf.j2 @@ -118,6 +118,12 @@ server { proxy_set_header X-Forwarded-For $remote_addr; } + location /rpc/metrics { + rewrite ^/rpc.php /rpc last; + proxy_pass http://127.0.0.1:10666/metrics; + proxy_set_header X-Forwarded-For $remote_addr; + } + location / { # Proxy over to aurweb's ASGI application. proxy_pass http://{{ aurweb_asgi_bind }};