forked from BLC/sgeUpdated
Merge branch 'main' of https://git.blc-css.com/k3n9achi/sgeUpdated
This commit is contained in:
34
.env
34
.env
@@ -1,18 +1,18 @@
|
|||||||
# Frontend environment configuration
|
# Frontend environment configuration
|
||||||
# REACT_APP_API_PROTOCOL=${API_PROTOCOL:-http}
|
# REACT_APP_API_PROTOCOL=${API_PROTOCOL:-http}
|
||||||
# REACT_APP_API_HOST=${API_HOST:-localhost}
|
# REACT_APP_API_HOST=${API_HOST:-localhost}
|
||||||
# REACT_APP_API_PORT=${SERVER_PORT:-8080}
|
# REACT_APP_API_PORT=${SERVER_PORT:-8080}
|
||||||
# REACT_APP_API_BASE_URL=${REACT_APP_API_PROTOCOL}://${REACT_APP_API_HOST}:${REACT_APP_API_PORT}/api/v1
|
# REACT_APP_API_BASE_URL=${REACT_APP_API_PROTOCOL}://${REACT_APP_API_HOST}:${REACT_APP_API_PORT}/api/v1
|
||||||
# REACT_APP_API_WEBSOCKET_BASE_URL=${REACT_APP_API_PROTOCOL}://${REACT_APP_API_HOST}:${REACT_APP_API_PORT}
|
# REACT_APP_API_WEBSOCKET_BASE_URL=${REACT_APP_API_PROTOCOL}://${REACT_APP_API_HOST}:${REACT_APP_API_PORT}
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Commented out alternative configuration
|
# Commented out alternative configuration
|
||||||
#REACT_APP_API_BASE_URL=http://172.16.150.22:8080/api/v1
|
#REACT_APP_API_BASE_URL=http://172.16.150.22:8080/api/v1
|
||||||
#REACT_APP_API_WEBSOCKET_BASE_URL=http://172.16.150.22:8080
|
#REACT_APP_API_WEBSOCKET_BASE_URL=http://172.16.150.22:8080
|
||||||
78
nginx.conf
78
nginx.conf
@@ -1,39 +1,39 @@
|
|||||||
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;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri /index.html;
|
try_files $uri /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
gzip_min_length 10240;
|
gzip_min_length 10240;
|
||||||
gzip_proxied any;
|
gzip_proxied any;
|
||||||
gzip_types text/plain text/css text/xml text/javascript application/javascript application/json application/xml application/rss+xml application/atom+xml image/svg+xml;
|
gzip_types text/plain text/css text/xml text/javascript application/javascript application/json application/xml application/rss+xml application/atom+xml image/svg+xml;
|
||||||
gzip_comp_level 5;
|
gzip_comp_level 5;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user