source: frontend/nginx.conf@ 545738f

Last change on this file since 545738f was 545738f, checked in by Andrej <asumanovski@…>, 2 weeks ago

Switched to dockerized db and improved Task model and Task Ui

  • Property mode set to 100644
File size: 777 bytes
Line 
1server {
2 listen 80;
3
4 root /usr/share/nginx/html;
5 index index.html;
6
7 # Proxy API calls to the backend container
8 location /api/ {
9 proxy_pass http://backend:8080/api/;
10 proxy_set_header Host $host;
11 proxy_set_header X-Real-IP $remote_addr;
12 }
13
14 # Yahoo Finance proxy (replaces the Vite dev proxy)
15 location /yahoo/ {
16 proxy_pass https://query1.finance.yahoo.com/;
17 proxy_ssl_server_name on;
18 proxy_set_header Host query1.finance.yahoo.com;
19 }
20
21 location /yahoo2/ {
22 proxy_pass https://query2.finance.yahoo.com/;
23 proxy_ssl_server_name on;
24 proxy_set_header Host query2.finance.yahoo.com;
25 }
26
27 # SPA fallback
28 location / {
29 try_files $uri $uri/ /index.html;
30 }
31}
Note: See TracBrowser for help on using the repository browser.