ngnix conf

This commit is contained in:
2023-07-26 14:11:41 +02:00
parent 8e1be17f29
commit f81e10c53c
2 changed files with 6 additions and 1 deletions

5
nginx.conf Normal file
View File

@@ -0,0 +1,5 @@
server {
add_header Access-Control-Allow-Origin 'https://api.eveal.shendai.rip,https://evepraisal.shendai.rip';
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'Content-Type';
}

View File

@@ -22,7 +22,7 @@ export const reprocess = async (items: string, minerals: string, efficiency?: nu
};
const source = JSON.stringify(sourceJson);
const response = await apiAxiosInstance.post('/reprocess', source, {params: {efficiency: efficiency ?? 0.55}});
const response = await apiAxiosInstance.post('/reprocess/', source, {params: {efficiency: efficiency ?? 0.55}});
return response.data;
};