Skip to content
Snippets Groups Projects
Verified Commit 51041d51 authored by Leonidas Spyropoulos's avatar Leonidas Spyropoulos
Browse files

aurweb: enable goaurrpc metrics

parent 7d5a2a77
No related branches found
No related tags found
No related merge requests found
...@@ -16,5 +16,6 @@ ...@@ -16,5 +16,6 @@
"KeyFile": "", "KeyFile": "",
"EnableSearchCache": true, "EnableSearchCache": true,
"CacheCleanupInterval": 60, "CacheCleanupInterval": 60,
"CacheExpirationTime": 180 "CacheExpirationTime": 180,
"EnableMetrics": true
} }
...@@ -118,6 +118,12 @@ server { ...@@ -118,6 +118,12 @@ server {
proxy_set_header X-Forwarded-For $remote_addr; 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 / { location / {
# Proxy over to aurweb's ASGI application. # Proxy over to aurweb's ASGI application.
proxy_pass http://{{ aurweb_asgi_bind }}; proxy_pass http://{{ aurweb_asgi_bind }};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment