From 7352dea23d770ef3b410194086e32830bc8e28fe Mon Sep 17 00:00:00 2001 From: Lorena Hendrix Date: Wed, 13 Nov 2024 15:13:52 +0100 Subject: [PATCH] debug umami --- gui/app_pages/Home.py | 10 +++++----- nginx/project.conf | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/gui/app_pages/Home.py b/gui/app_pages/Home.py index bc28a8c..bd23ecd 100644 --- a/gui/app_pages/Home.py +++ b/gui/app_pages/Home.py @@ -15,13 +15,13 @@ ) from app_scripts import app_view -# components.html( -# '' -# ) - components.html( - '' + '' ) + +# components.html( +# '' +# ) # ############################## # # Remember user changed values for k, v in st.session_state.items(): diff --git a/nginx/project.conf b/nginx/project.conf index f59a58f..7469641 100644 --- a/nginx/project.conf +++ b/nginx/project.conf @@ -32,6 +32,22 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + location /umami.js { + proxy_pass http://umami:3000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location /api/collect { + proxy_pass http://umami:3000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + # Umami analytics application proxy # location /umami/ { # proxy_pass http://umami:3000/;