diff --git a/.env b/.env index 4ce9568..7de28fd 100644 --- a/.env +++ b/.env @@ -1,18 +1,18 @@ -# Frontend environment configuration -# REACT_APP_API_PROTOCOL=${API_PROTOCOL:-http} -# REACT_APP_API_HOST=${API_HOST:-localhost} -# 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_WEBSOCKET_BASE_URL=${REACT_APP_API_PROTOCOL}://${REACT_APP_API_HOST}:${REACT_APP_API_PORT} - -SKIP_PREFLIGHT_CHECK=true -# Vite environment variables -REACT_APP_API_BASE_URL=http://localhost:8080/api/v1 -REACT_APP_API_WEBSOCKET_BASE_URL=http://localhost:8080 -REACT_APP_DEFAULT_EMAIL=info@blc-css.com - - - -# Commented out alternative configuration -#REACT_APP_API_BASE_URL=http://172.16.150.22:8080/api/v1 +# Frontend environment configuration +# REACT_APP_API_PROTOCOL=${API_PROTOCOL:-http} +# REACT_APP_API_HOST=${API_HOST:-localhost} +# 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_WEBSOCKET_BASE_URL=${REACT_APP_API_PROTOCOL}://${REACT_APP_API_HOST}:${REACT_APP_API_PORT} + +SKIP_PREFLIGHT_CHECK=true +# Vite environment variables +REACT_APP_API_BASE_URL=https://bgreen.blc-css.com/api/v1 +REACT_APP_API_WEBSOCKET_BASE_URL=https://bgreen.blc-css.com +REACT_APP_DEFAULT_EMAIL=info@blc-css.com + + + +# Commented out alternative configuration +#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 \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 1b791d2..04983d3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,39 +1,39 @@ -server { - listen 80; - server_name _; - - root /usr/share/nginx/html; - index index.html index.htm; - - location / { - try_files $uri /index.html; - } - - location /api/v1/graphql { - proxy_pass http://backend:8080/api/v1/graphql; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - } - - location /api/v1/upload { - proxy_pass http://backend:8080/upload; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - } - - location /api/v1/datacenter { - proxy_pass http://backend:8080/api/v1/datacenter; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - } - - # Hata durumlarında da index.html'i sun - error_page 404 /index.html; - - gzip on; - gzip_vary on; - gzip_min_length 10240; - 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_comp_level 5; -} +server { + listen 80; + server_name bgreen.blc-css.com; + + root /usr/share/nginx/html; + index index.html index.htm; + + location / { + try_files $uri /index.html; + } + + location /api/v1/graphql { + proxy_pass http://bgreen-backend:8080/api/v1/graphql; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } + + location /api/v1/upload { + proxy_pass http://bgreen-backend:8080/upload; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } + +# location /api/v1/datacenter { +# proxy_pass http://backend:8080/api/v1/datacenter; +# proxy_set_header Host $host; +# proxy_set_header X-Real-IP $remote_addr; +# } + + # Hata durumlarında da index.html'i sun + error_page 404 /index.html; + + gzip on; + gzip_vary on; + gzip_min_length 10240; + 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_comp_level 5; +}