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:
parent
bbfdc3acbb
commit
342e137560
2 changed files with 4 additions and 2 deletions
|
@ -7,6 +7,8 @@ services:
|
|||
dockerfile: nginx/Dockerfile
|
||||
links:
|
||||
- backend
|
||||
environment:
|
||||
- REACT_APP_HTTP_PROXY
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue