fix: Nginx proxy for backend and relative API_BASE_URL
This commit is contained in:
@@ -2,6 +2,17 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
|
location /api/ {
|
||||||
|
proxy_pass http://backend:5000;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /uploads/ {
|
||||||
|
proxy_pass http://backend:5000;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
const API_BASE_URL = process.env.REACT_APP_API_URL || 'https://digifox.studio';
|
const API_BASE_URL = process.env.REACT_APP_API_URL || '';
|
||||||
|
|
||||||
export default API_BASE_URL;
|
export default API_BASE_URL;
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"domains": "https://limelite-faceanalyzer.houseofwebsites.ai"
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"project_uuid": "kozt3dmpa63penhin84sb8r0",
|
||||||
|
"environment_name": "production",
|
||||||
|
"server_uuid": "jrcjtobvncyba40v3vi6pzqe",
|
||||||
|
"name": "limelite-faceanalyzer",
|
||||||
|
"git_repository": "https://mohanki:48d38a221949649fdf1b470bbd037de9a5e6c564@git.digifox.live/mohanki/limelite_faceanalyzer.git",
|
||||||
|
"git_branch": "master",
|
||||||
|
"build_pack": "dockercompose",
|
||||||
|
"ports_exposes": "9500"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user