Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

escaletech/tog-management-server

Repository files navigation

Tog Management Server

CircleCI

Server application that provides management of Tog flags and experiments. Best used with Tog CLI.

Usage

$ docker run -d -p 3000:3000 \
  --env 'OAUTH_CLIENT_ID=XYZ' \
  --env 'OAUTH_CLIENT_SECRET=XYZ' \
  --env 'OAUTH_CALLBACK_URL=https://<DOMAIN>/auth/google/callback'
  --env 'REDIS_URL=redis://your-redis:6379' \
  escaletech/tog-management-server

Configuration variables

  • OAUTH_CLIENT_ID - Client ID for OAuth 2 authentication (required, see Authentication)
  • OAUTH_CLIENT_SECRET - Client secret for OAuth 2 authentication (required, see Authentication)
  • OAUTH_CALLBACK_URL - Redirect uri for OAuth 2 authentication (required, see RedirectURI)
  • REDIS_URL - URL for the Redis server used by Tog (required, e.g. redis://my-redis-server.com)
  • REDIS_CLUSTER - Set to true if Redis URL is a cluster (optional, default: false)
  • DOMAIN_WHITELIST - If specified, only users from these domains will be allowed (optional, e.g. escale.com.br)

Authentication

Currently the only supported OAuth 2 authentication provider is Google.

  1. Go to Create OAuth client ID - Google API Console
  2. When asked for Application type, select Web application
  3. Add https://<YOUR-DOMAIN> as Authorized JavaScript origins
  4. Add https://<YOUR-DOMAIN>/auth/google/callback as Authorized redirect URIs
  5. Click Create
  6. Use the provided Client ID and Client secret for running the server

An optional step is to define a domain whitelist to only allow users from a certain domain to use the API.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •