diff --git a/README.md b/README.md index 8b4ac11b..6e041042 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ The official docker images are available on [Dockerhub](https://hub.docker.com/r ### CLI ``` - Mango - Manga Server and Web Reader. Version 0.20.1 + Mango - Manga Server and Web Reader. Version 0.20.2 Usage: @@ -75,6 +75,7 @@ The default config file location is `~/.config/mango/config.yml`. It might be di ```yaml --- +host: 0.0.0.0 port: 9000 base_url: / session_secret: mango-session-secret @@ -89,9 +90,10 @@ download_timeout_seconds: 30 page_margin: 30 disable_login: false default_username: "" +auth_proxy_header_name: "" mangadex: base_url: https://mangadex.org - api_url: https://mangadex.org/api + api_url: https://mangadex.org/api/v2 download_wait_seconds: 5 download_retries: 4 download_queue_db_path: ~/mango/queue.db diff --git a/shard.yml b/shard.yml index 7e61ab5e..40fbe72d 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: mango -version: 0.20.1 +version: 0.20.2 authors: - Alex Ling diff --git a/src/config.cr b/src/config.cr index a52d0a3b..abacbb3f 100644 --- a/src/config.cr +++ b/src/config.cr @@ -5,6 +5,7 @@ class Config @[YAML::Field(ignore: true)] property path : String = "" + property host : String = "0.0.0.0" property port : Int32 = 9000 property base_url : String = "/" property session_secret : String = "mango-session-secret" diff --git a/src/mango.cr b/src/mango.cr index e585dcff..0591045d 100644 --- a/src/mango.cr +++ b/src/mango.cr @@ -8,7 +8,7 @@ require "option_parser" require "clim" require "tallboy" -MANGO_VERSION = "0.20.1" +MANGO_VERSION = "0.20.2" # From http://www.network-science.de/ascii/ BANNER = %{ diff --git a/src/server.cr b/src/server.cr index 9d9cefab..e8dc54b0 100644 --- a/src/server.cr +++ b/src/server.cr @@ -49,6 +49,7 @@ class Server {% if flag?(:release) %} Kemal.config.env = "production" {% end %} + Kemal.config.host_binding = Config.current.host Kemal.config.port = Config.current.port Kemal.run end