Server application that provides management of Tog flags and experiments. Best used with Tog CLI.
$ 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-serverOAUTH_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 totrueif 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)
Currently the only supported OAuth 2 authentication provider is Google.
- Go to Create OAuth client ID - Google API Console
- When asked for Application type, select Web application
- Add
https://<YOUR-DOMAIN>as Authorized JavaScript origins - Add
https://<YOUR-DOMAIN>/auth/google/callbackas Authorized redirect URIs - Click Create
- 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.