This commit is contained in:
2025-07-27 21:14:37 +03:00
2 changed files with 56 additions and 56 deletions

4
.env
View File

@@ -7,8 +7,8 @@
SKIP_PREFLIGHT_CHECK=true SKIP_PREFLIGHT_CHECK=true
# Vite environment variables # Vite environment variables
REACT_APP_API_BASE_URL=http://localhost:8080/api/v1 REACT_APP_API_BASE_URL=https://bgreen.blc-css.com/api/v1
REACT_APP_API_WEBSOCKET_BASE_URL=http://localhost:8080 REACT_APP_API_WEBSOCKET_BASE_URL=https://bgreen.blc-css.com
REACT_APP_DEFAULT_EMAIL=info@blc-css.com REACT_APP_DEFAULT_EMAIL=info@blc-css.com

View File

@@ -1,6 +1,6 @@
server { server {
listen 80; listen 80;
server_name _; server_name bgreen.blc-css.com;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html index.htm; index index.html index.htm;
@@ -10,22 +10,22 @@ server {
} }
location /api/v1/graphql { location /api/v1/graphql {
proxy_pass http://backend:8080/api/v1/graphql; proxy_pass http://bgreen-backend:8080/api/v1/graphql;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
} }
location /api/v1/upload { location /api/v1/upload {
proxy_pass http://backend:8080/upload; proxy_pass http://bgreen-backend:8080/upload;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
} }
location /api/v1/datacenter { # location /api/v1/datacenter {
proxy_pass http://backend:8080/api/v1/datacenter; # proxy_pass http://backend:8080/api/v1/datacenter;
proxy_set_header Host $host; # proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; # proxy_set_header X-Real-IP $remote_addr;
} # }
# Hata durumlarında da index.html'i sun # Hata durumlarında da index.html'i sun
error_page 404 /index.html; error_page 404 /index.html;