updated conf
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
cd /pfad/zu/deinem/repo
|
|
||||||
while true; do
|
|
||||||
git pull || echo "git pull failed"
|
|
||||||
sleep 10
|
|
||||||
done
|
|
||||||
@@ -4,8 +4,6 @@ services:
|
|||||||
build: ./frontend
|
build: ./frontend
|
||||||
networks:
|
networks:
|
||||||
- proxynet
|
- proxynet
|
||||||
ports:
|
|
||||||
- "7002:80"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
@@ -13,8 +11,6 @@ services:
|
|||||||
build: ./backend
|
build: ./backend
|
||||||
networks:
|
networks:
|
||||||
- proxynet
|
- proxynet
|
||||||
ports:
|
|
||||||
- "7001:7001"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend:/bikelane-backend
|
- ./backend:/bikelane-backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -9,6 +9,14 @@ server {
|
|||||||
try_files $uri $uri/ /index.html;
|
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?)$ {
|
location ~* \.(?:js|mjs|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { myToast } from "./toastify";
|
|||||||
export const fetchWeather = async (city: string, units: string) => {
|
export const fetchWeather = async (city: string, units: string) => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`https://backend.weather.the1s.de/api/fetchWeather?city=${encodeURIComponent(
|
`https://weather.the1s.de/backend/api/fetchWeather?city=${encodeURIComponent(
|
||||||
city
|
city
|
||||||
)}&units=${encodeURIComponent(units)}`,
|
)}&units=${encodeURIComponent(units)}`,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user