edited nginx config

This commit is contained in:
2026-01-19 12:10:40 +01:00
parent 130167bfa2
commit 9bc22300eb
2 changed files with 9 additions and 1 deletions

View File

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

View File

@@ -17,7 +17,7 @@ interface FormData {
export const submitFormData = async (data: FormData) => {
try {
const response = await fetch("http://localhost:8004/default/frontend", {
const response = await fetch("/backend/default/frontend", {
method: "POST",
headers: {
"Content-Type": "application/json",