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 177a355 commit e1929c6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions nginx/project.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ server {
}

server {

server {
listen 80;
server_name app.batterymodel.com;

# Redirect HTTP to HTTPS
return 301 https://$host$request_uri;
}

listen 443 ssl;
server_name app.batterymodel.com;

Expand All @@ -42,6 +51,10 @@ server {
# rewrite /umami/(.*) /$1 break;
}

location /umami/static/ {
alias /path/to/umami/static/; # Make sure static assets are served correctly
}

# SSL configuration
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;
Expand Down

0 comments on commit e1929c6

Please sign in to comment.