# Copyright 2019 TeamTalk Remix Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: ConfigMap
metadata:
  name: teamtalk-ng-login
  labels:
    app: teamtalk-ng
    component: login
data:
  loginserver.conf: |
    ClientListenIP=0.0.0.0
    ClientPort=8008
    HttpListenIP=0.0.0.0
    HttpPort=8080
    MsgServerListenIP=0.0.0.0
    MsgServerPort=8100
    msfs=http://127.0.0.1:8700/
    discovery=http://127.0.0.1/api/discovery
  log4cxx.properties: |
    log4j.rootLogger=INFO, stderr
    log4j.additivity.org.apache=false
    log4j.appender.stderr = org.apache.log4j.ConsoleAppender
    log4j.appender.stderr.Threshold = INFO
    log4j.appender.stderr.Target   = System.err
    log4j.appender.stderr.layout = org.apache.log4j.PatternLayout
    log4j.appender.stderr.layout.ConversionPattern = %d [%-5p %.16c] - %m%n
    log4j.logger.test=DEBUG, stderr
