Skip to content

Commit

Permalink
nginx: Update upstream names
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Oct 17, 2024
1 parent c343f18 commit 957013f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -113,34 +113,34 @@ http {
rewrite ^/en/(.*)$ https://flathub.org/$1;

location / {
proxy_pass http://frontend-v2:3000/;
proxy_pass http://frontend:3000/;
}

location /api/v1/ {
proxy_cache cache;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://backend-v2:8000/compat/;
proxy_pass http://backend:8000/compat/;
}

location /api/v2/ {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://backend-v2:8000/;
proxy_pass http://backend:8000/;
}

location = /api/v1/apps/collection/new/feed {
proxy_cache cache;
proxy_cache_valid 200 1h;
proxy_pass http://backend-v2:8000/feed/new;
proxy_pass http://backend:8000/feed/new;
}

location = /api/v1/apps/collection/recently-updated/feed {
proxy_cache cache;
proxy_cache_valid 200 1h;
proxy_pass http://backend-v2:8000/feed/recently-updated;
proxy_pass http://backend:8000/feed/recently-updated;
}

rewrite ^/stats$ /stats/;
Expand Down

0 comments on commit 957013f

Please sign in to comment.