apiVersion: v1
kind: ConfigMap
metadata:
  name: global-config
  namespace: gameon-system
data:
# Global: interservice communication
  MAP_SERVICE_URL: http://map.gameon-system.svc.cluster.local:9080/map/v1/sites
  MAP_HEALTH_SERVICE_URL: http://map.gameon-system.svc.cluster.local:9080/map/v1/health
  PLAYER_SERVICE_URL: http://player.gameon-system.svc.cluster.local:9080/players/v1/accounts
  RECROOM_SERVICE_URL: ws://room.gameon-system.svc.cluster.local:9080/rooms
# Global: Common backing services
  COUCHDB_USER: mapUser
  COUCHDB_PASSWORD: myCouchDBSecret
  COUCHDB_SERVICE_URL: http://couchdb.gameon-system.svc.cluster.local:5984
  COUCHDB_HOST_AND_PORT: couchdb.gameon-system.svc.cluster.local:5984
  KAFKA_SERVICE_URL: kafka.gameon-system.svc.cluster.local:9092
# Global configuration vars for running locally
  GAMEON_MODE: development
  TARGET_PLATFORM: local
  SYSTEM_ID: gameontext.org
  ADMIN_PASSWORD: admin
  MAP_KEY: fish
  SWEEP_ID: sweep
  SWEEP_SECRET: sweepSecret
# Auth service environment variables
# (Note, these can't be empty, as an empty var is stil
#  a defined var, and a defined var means spring will
#  try to use the value, which leads to the auth service
#  being unable to start, as it cannot tolerate empty
#  values being used.)
  FACEBOOK_APP_ID: 'x'
  FACEBOOK_APP_SECRET: 'x'
  GITHUB_APP_ID: 'x'
  GITHUB_APP_SECRET: 'x'
  GOOGLE_APP_ID: 'x'
  GOOGLE_APP_SECRET: 'x'
  TWITTER_CONSUMER_KEY: 'x'
  TWITTER_CONSUMER_SECRET: 'x'
  FRONT_END_SUCCESS_CALLBACK: https://GAME_FRONT_DOOR/#/login/callback
  FRONT_END_FAIL_CALLBACK: https://GAME_FRONT_DOOR/#/login?login_failed
  FRONT_END_AUTH_URL: https://GAME_FRONT_DOOR/auth
  FRONT_END_DUMMY_AUTH_URL: https://GAMEON_DUMMY/auth
