1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

pass HTTP_PROXY environment to app

This commit is contained in:
Ricardo Hernandez-Montoya 2017-06-01 08:35:04 +02:00
parent bbfdc3acbb
commit 342e137560
2 changed files with 4 additions and 2 deletions

View file

@ -7,6 +7,8 @@ services:
dockerfile: nginx/Dockerfile
links:
- backend
environment:
- REACT_APP_HTTP_PROXY
ports:
- "80:80"
- "443:443"

View file

@ -22,8 +22,8 @@
import RestAPI from '../api/rest-api';
import AppDispatcher from '../app-dispatcher';
const PROXY = process.env.REACT_APP_HTTP_PROXY || "http://localhost:4000";
const API_URL = PROXY + '/api/v1';
const HOST = process.env.REACT_APP_HTTP_PROXY || "";
const API_URL = HOST + '/api/v1';
class RestDataManager {
constructor(type, url, keyFilter) {