mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Add read config from yml
This commit is contained in:
parent
85a383b328
commit
58f9d8c590
2 changed files with 15 additions and 5 deletions
|
@ -17,7 +17,7 @@ at_exit do
|
|||
config = Kemal.config
|
||||
logger = Kemal::Logger.new
|
||||
config.add_handler logger
|
||||
config.add_handler Kemal::StaticFileHandler.new("./public")
|
||||
config.add_handler Kemal::StaticFileHandler.new(config.public_folder)
|
||||
config.add_handler Kemal::Handler::INSTANCE
|
||||
|
||||
server = HTTP::Server.new(config.port, config.handlers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue