Comments (2)
This should work with the following configuration:
env.js
window.env = {
REACT_APP_ENVIRONMENT: 'dev',
REACT_APP_URL: 'http://localhost/',
REACT_APP_URL_BASENAME: '',
REACT_APP_URL_DTLINK: '/lab',
REACT_APP_URL_LIBLINK: '',
REACT_APP_WORKBENCHLINK_TERMINAL: '/terminals/main',
REACT_APP_WORKBENCHLINK_VNCDESKTOP: '/tools/vnc/?password=vncpassword',
REACT_APP_WORKBENCHLINK_VSCODE: '/tools/vscode/',
REACT_APP_WORKBENCHLINK_JUPYTERLAB: '/lab',
REACT_APP_WORKBENCHLINK_JUPYTERNOTEBOOK: '',
REACT_APP_CLIENT_ID: '1be55736756190b3ace4c2c4fb19bde386d1dcc748d20b47ea8cfb5935b8446c',
REACT_APP_AUTH_AUTHORITY: 'https://gitlab.com/',
REACT_APP_REDIRECT_URI: 'http://localhost/Library',
REACT_APP_LOGOUT_REDIRECT_URI: 'http://localhost/',
REACT_APP_GITLAB_SCOPES: 'openid profile read_user read_repository api',
};
fileConfig.yml
http:
routers:
dtaas:
entryPoints:
- http
rule: 'Host(`localhost`)'
middlewares:
- basic-auth
service: dtaas
user1:
entryPoints:
- http
rule: 'Host(`localhost`) && PathPrefix(`/user1`)'
middlewares:
- basic-auth
service: user1
user2:
entryPoints:
- http
rule: 'Host(`localhost`) && PathPrefix(`/user2`)'
middlewares:
- basic-auth
service: user2
libms:
entryPoints:
- http
rule: 'Host(localhost`) && PathPrefix(`/lib`)'
service: libms
# Middleware: Basic authentication
middlewares:
basic-auth:
basicAuth:
usersFile: "/etc/traefik/auth"
removeHeader: true
services:
dtaas:
loadBalancer:
servers:
- url: "http://localhost:4000"
user1:
loadBalancer:
servers:
- url: "http://localhost:8090"
user2:
loadBalancer:
servers:
- url: "http://localhost:8091"
libms:
loadBalancer:
servers:
- url: "http://localhost:4001"
lib
PORT='4001'
MODE='local'
LOCAL_PATH ='filepath'
LOG_LEVEL='debug'
APOLLO_PATH='/lib'
GRAPHQL_PLAYGROUND='true'
filenames: deploy/config/client/env.js.local
and deploy/config/gateway/fileConfig.yml.local
and deploy/config/lib.local
.
Please add deploy/localhost.sh
to setup the install on localhost
.
from dtaas.
PR #380 completes the task.
from dtaas.
Related Issues (20)
- provide helpful error message for signin failure
- Validate react website configuration
- Integrate docs into release HOT 1
- libms: commander error on Windows HOT 2
- Update labels for containers in github actions
- Packaged assets HOT 1
- Rename variables in docker installation HOT 1
- Host DTaaS application on different ports and basepaths. HOT 1
- Fix docker publish steps in github actions HOT 1
- mistake in libms dockerfile HOT 1
- Wrong READMEs in github packages HOT 2
- Add documentation of new examples HOT 1
- Mistakes in lib.dockerfile HOT 2
- Trigger CI pipeline from client HOT 1
- dev container stalls
- mistake in client package.json HOT 1
- Mistakes in documentation HOT 1
- Integration Test for Library page of Client
- Improve services HOT 1
- Error in user creation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dtaas.