Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run DTaaS with localhost domain name #301

Closed
prasadtalasila opened this issue Nov 24, 2023 · 2 comments
Closed

Run DTaaS with localhost domain name #301

prasadtalasila opened this issue Nov 24, 2023 · 2 comments
Assignees

Comments

@prasadtalasila
Copy link
Contributor

The DTaaS software must run within user computer. The domain name of the web server as mentioned in trial install shall be localhost.

This is related to issue #31

@prasadtalasila
Copy link
Contributor Author

prasadtalasila commented Nov 26, 2023

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.

@prasadtalasila prasadtalasila added this to the Release v0.4.0 milestone Nov 26, 2023
@nichlaes nichlaes linked a pull request Dec 6, 2023 that will close this issue
@prasadtalasila
Copy link
Contributor Author

PR #380 completes the task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants