# Copyright (c) 2014-2018 Snowplow Analytics Ltd. All rights reserved.
#
# This program is licensed to you under the Apache License Version 2.0, and
# you may not use this file except in compliance with the Apache License
# Version 2.0.  You may obtain a copy of the Apache License Version 2.0 at
# http://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Apache License Version 2.0 is distributed on an "AS
# IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.  See the Apache License Version 2.0 for the specific language
# governing permissions and limitations there under.

# This file (application.conf) contains all necessary configuration options for
# the Iglu repository server.

# 'repo-server' contains configuration options for the repo-server.
# interface on which the server will be running
# baseURL is address of deployment, "<ip>:<port>/<deployment_path>" address used for baseURL of Swagger UI
# port on which the server will be running


repo-server {
  interface = "0.0.0.0"
  baseURL = "ec2-35-165-21-41.us-west-2.compute.amazonaws.com/iglu-server"
  port = 8081
}

# 'postgres' contains configuration options for the postgre instance the server
# is using
postgres {
  host = "postgres"
  port = 5432
  dbname = "iglu"
  username = "snowplow"
  password = "snowplow"
  driver = "org.postgresql.Driver"
}

akka {
  loggers = ["akka.event.slf4j.Slf4jLogger"]
  loglevel = INFO
  log-dead-letters = off
  stdout-loglevel = "DEBUG"
  logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
}

akka.http {
  server {
    request-timeout = 10 seconds
    remote-address-header = on
    parsing.uri-parsing-mode = relaxed
  }
}