Skip to content

Commit

Permalink
debug umami
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenaH84 committed Nov 13, 2024
1 parent aed90f5 commit 7352dea
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gui/app_pages/Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
)
from app_scripts import app_view

# components.html(
# '<script defer src="https://app.batterymodel.com/umami/script.js" data-website-id="213d7c39-2f27-43d9-822e-7e0e855273db"></script>'
# )

components.html(
'<script defer src="https://cloud.umami.is/script.js" data-website-id="adcac53d-bc65-4ca3-9f98-be5c7c4ee75d"></script>'
'<script defer src="https://app.batterymodel.com/umami.js" data-website-id="213d7c39-2f27-43d9-822e-7e0e855273db"></script>'
)

# components.html(
# '<script defer src="https://cloud.umami.is/script.js" data-website-id="adcac53d-bc65-4ca3-9f98-be5c7c4ee75d"></script>'
# )
# ##############################
# # Remember user changed values
for k, v in st.session_state.items():
Expand Down
16 changes: 16 additions & 0 deletions nginx/project.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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/;
Expand Down

0 comments on commit 7352dea

Please sign in to comment.