mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 17:15:31 +00:00
add custom host/port argument options
This commit is contained in:
parent
bab40bd677
commit
0d155d6ef2
2 changed files with 17 additions and 1 deletions
|
|
@ -47,6 +47,11 @@ fn rocket() -> _ {
|
|||
);
|
||||
let storage = Storage::init(config.storage, config.limit, config.capacity).unwrap(); // @TODO handle
|
||||
rocket::build()
|
||||
.configure(rocket::Config {
|
||||
port: config.port,
|
||||
address: config.address,
|
||||
..rocket::Config::debug_default()
|
||||
})
|
||||
.manage(feed)
|
||||
.manage(storage)
|
||||
.mount("/", routes![index, rss])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue