Compare commits

...

5 Commits

Author SHA1 Message Date
Alex Ling 3c3549a489 Merge pull request #172 from hkalexling/hotfix/bind-localhost 2021-03-04 13:47:59 +08:00
Alex Ling 8160b0a18e Bump version to 0.20.2 2021-03-04 04:49:37 +00:00
Alex Ling a7eff772be Update example config in README 2021-03-04 04:48:51 +00:00
Alex Ling bf3900f9a2 Add host to config 2021-03-03 17:35:39 +00:00
Alex Ling 6fa575cf4f Bind localhost when a proxy auth header is set 2021-03-03 16:28:31 +00:00
5 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -52,7 +52,7 @@ The official docker images are available on [Dockerhub](https://hub.docker.com/r
### CLI ### CLI
``` ```
Mango - Manga Server and Web Reader. Version 0.20.1 Mango - Manga Server and Web Reader. Version 0.20.2
Usage: Usage:
@@ -75,6 +75,7 @@ The default config file location is `~/.config/mango/config.yml`. It might be di
```yaml ```yaml
--- ---
host: 0.0.0.0
port: 9000 port: 9000
base_url: / base_url: /
session_secret: mango-session-secret session_secret: mango-session-secret
@@ -89,9 +90,10 @@ download_timeout_seconds: 30
page_margin: 30 page_margin: 30
disable_login: false disable_login: false
default_username: "" default_username: ""
auth_proxy_header_name: ""
mangadex: mangadex:
base_url: https://mangadex.org base_url: https://mangadex.org
api_url: https://mangadex.org/api api_url: https://mangadex.org/api/v2
download_wait_seconds: 5 download_wait_seconds: 5
download_retries: 4 download_retries: 4
download_queue_db_path: ~/mango/queue.db download_queue_db_path: ~/mango/queue.db
+1 -1
View File
@@ -1,5 +1,5 @@
name: mango name: mango
version: 0.20.1 version: 0.20.2
authors: authors:
- Alex Ling <hkalexling@gmail.com> - Alex Ling <hkalexling@gmail.com>
+1
View File
@@ -5,6 +5,7 @@ class Config
@[YAML::Field(ignore: true)] @[YAML::Field(ignore: true)]
property path : String = "" property path : String = ""
property host : String = "0.0.0.0"
property port : Int32 = 9000 property port : Int32 = 9000
property base_url : String = "/" property base_url : String = "/"
property session_secret : String = "mango-session-secret" property session_secret : String = "mango-session-secret"
+1 -1
View File
@@ -8,7 +8,7 @@ require "option_parser"
require "clim" require "clim"
require "tallboy" require "tallboy"
MANGO_VERSION = "0.20.1" MANGO_VERSION = "0.20.2"
# From http://www.network-science.de/ascii/ # From http://www.network-science.de/ascii/
BANNER = %{ BANNER = %{
+1
View File
@@ -49,6 +49,7 @@ class Server
{% if flag?(:release) %} {% if flag?(:release) %}
Kemal.config.env = "production" Kemal.config.env = "production"
{% end %} {% end %}
Kemal.config.host_binding = Config.current.host
Kemal.config.port = Config.current.port Kemal.config.port = Config.current.port
Kemal.run Kemal.run
end end