Skip to content

Commit

Permalink
Merge pull request #172 from hkalexling/hotfix/bind-localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
hkalexling authored Mar 4, 2021
2 parents 604c5d4 + 8160b0a commit 3c3549a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mango
version: 0.20.1
version: 0.20.2

authors:
- Alex Ling <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions src/config.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/mango.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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 = %{
Expand Down
1 change: 1 addition & 0 deletions src/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c3549a

Please sign in to comment.