Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 3c3549a

Browse files
authored
Merge pull request #172 from hkalexling/hotfix/bind-localhost
2 parents 604c5d4 + 8160b0a commit 3c3549a

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The official docker images are available on [Dockerhub](https://hub.docker.com/r
5252
### CLI
5353

5454
```
55-
Mango - Manga Server and Web Reader. Version 0.20.1
55+
Mango - Manga Server and Web Reader. Version 0.20.2
5656
5757
Usage:
5858
@@ -75,6 +75,7 @@ The default config file location is `~/.config/mango/config.yml`. It might be di
7575

7676
```yaml
7777
---
78+
host: 0.0.0.0
7879
port: 9000
7980
base_url: /
8081
session_secret: mango-session-secret
@@ -89,9 +90,10 @@ download_timeout_seconds: 30
8990
page_margin: 30
9091
disable_login: false
9192
default_username: ""
93+
auth_proxy_header_name: ""
9294
mangadex:
9395
base_url: https://mangadex.org
94-
api_url: https://mangadex.org/api
96+
api_url: https://mangadex.org/api/v2
9597
download_wait_seconds: 5
9698
download_retries: 4
9799
download_queue_db_path: ~/mango/queue.db

shard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: mango
2-
version: 0.20.1
2+
version: 0.20.2
33

44
authors:
55
- Alex Ling <[email protected]>

src/config.cr

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class Config
55

66
@[YAML::Field(ignore: true)]
77
property path : String = ""
8+
property host : String = "0.0.0.0"
89
property port : Int32 = 9000
910
property base_url : String = "/"
1011
property session_secret : String = "mango-session-secret"

src/mango.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require "option_parser"
88
require "clim"
99
require "tallboy"
1010

11-
MANGO_VERSION = "0.20.1"
11+
MANGO_VERSION = "0.20.2"
1212

1313
# From http://www.network-science.de/ascii/
1414
BANNER = %{

src/server.cr

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class Server
4949
{% if flag?(:release) %}
5050
Kemal.config.env = "production"
5151
{% end %}
52+
Kemal.config.host_binding = Config.current.host
5253
Kemal.config.port = Config.current.port
5354
Kemal.run
5455
end

0 commit comments

Comments
 (0)