updated conf

This commit is contained in:
2026-01-27 10:49:59 +01:00
parent df3802ff50
commit bdb8f9bb64
4 changed files with 9 additions and 11 deletions

View File

@@ -9,6 +9,14 @@ server {
try_files $uri $uri/ /index.html;
}
location = /backend {
return 301 /backend/;
}
location /backend/ {
proxy_pass http://weather-backend:7001/;
}
location ~* \.(?:js|mjs|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
expires 1y;
access_log off;

View File

@@ -3,7 +3,7 @@ import { myToast } from "./toastify";
export const fetchWeather = async (city: string, units: string) => {
try {
const response = await fetch(
`https://backend.weather.the1s.de/api/fetchWeather?city=${encodeURIComponent(
`https://weather.the1s.de/backend/api/fetchWeather?city=${encodeURIComponent(
city
)}&units=${encodeURIComponent(units)}`,
{