Skip to content

Commit

Permalink
Factor out Akka HTTP (close snowplow/iglu#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuwy committed Oct 9, 2019
1 parent 999e2d5 commit e3c0797
Show file tree
Hide file tree
Showing 99 changed files with 4,626 additions and 8,624 deletions.
16 changes: 0 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
*.class
*.log

# sbt specific
.cache/
.history/
.lib/
dist/*
target/
lib_managed/
src_managed/
project/boot/
project/plugins/project/

# Scala-IDE specific
.scala_dependencies
.worksheet
202 changes: 0 additions & 202 deletions LICENSE-2.0.txt

This file was deleted.

10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A RESTful schema registry, allowing users to publish, test and serve schemas via

## Copyright and license

Iglu Server is copyright 2014-2018 Snowplow Analytics Ltd.
Iglu Server is copyright 2014-2019 Snowplow Analytics Ltd.

Licensed under the **[Apache License, Version 2.0][license]** (the "License");
you may not use this software except in compliance with the License.
Expand All @@ -21,14 +21,18 @@ 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.

[docker]: https://www.docker.com/products/docker-engine
[sbt]: https://www.scala-sbt.org/

[techdocs-image]: https://d3i6fms1cm1j0i.cloudfront.net/github/images/techdocs.png
[setup-image]: https://d3i6fms1cm1j0i.cloudfront.net/github/images/setup.png
[roadmap-image]: https://d3i6fms1cm1j0i.cloudfront.net/github/images/roadmap.png
[contributing-image]: https://d3i6fms1cm1j0i.cloudfront.net/github/images/contributing.png

[techdocs]: https://github.com/snowplow/iglu/wiki/Scala-repo-server
[setup]: https://github.com/snowplow/iglu/wiki/Scala-repo-server-setup
[techdocs]: https://github.com/snowplow/iglu/wiki/Iglu-server-0.6.0
[setup]: https://github.com/snowplow/iglu/wiki/Iglu-server-0.6.0-setup
[roadmap]: https://github.com/snowplow/iglu/wiki/Product-roadmap
[contributing]: https://github.com/snowplow/iglu/wiki/Contributing

[license]: http://www.apache.org/licenses/LICENSE-2.0

46 changes: 16 additions & 30 deletions src/main/resources/application.conf → application.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2014-2018 Snowplow Analytics Ltd. All rights reserved.
# Copyright (c) 2014-2019 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
Expand All @@ -11,41 +11,27 @@
# 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.
# This file (application.conf) contains all necessary configuration options for the Iglu 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' contains configuration options for the repo-server -
# interface and port on which the server will be running
repo-server {
interface = "localhost"
baseURL = "localhost:8080"
interface = "0.0.0.0"
port = 8080
}

# 'postgres' contains configuration options for the postgre instance the server
# is using
postgres {
host = "localhost"
# 'postgres' contains configuration options for the postgre instance the server is using
# 'dummy' is in-memory only storage
database {
type = "postgres"
host = "postgres"
port = 5432
dbname = "iglu"
username = "ben"
password = "ben"
dbname = "igludb"
username = "postgres"
password = "iglusecret"
driver = "org.postgresql.Driver"
maxPoolSize = 5
}

akka {
loggers = ["akka.event.slf4j.Slf4jLogger"]
loglevel = "DEBUG"
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
}
}
# Enable additional debug endpoint to output all internal state
debug = true
Loading

0 comments on commit e3c0797

Please sign in to comment.