Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions nginx/rythmify.duckdns.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,37 @@ server {
root /var/www/rythmify;
index index.html;

# Backend API
location /api/ {
proxy_pass http://localhost:8080/api/;

proxy_http_version 1.1;
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;
}

# WebSocket support
location /socket.io/ {
proxy_pass http://localhost:8080/socket.io/;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}

# Grafana (MUST KEEP)
location /grafana/ {
proxy_pass http://localhost:3000/;

proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

# Frontend SPA
location / {
try_files $uri $uri/ /index.html;
}
Expand Down
Loading