edited nginx config
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user