Update listen ports
This commit is contained in:
parent
488fa685d3
commit
e9fcc71382
|
@ -10,7 +10,7 @@ use warp::Filter;
|
||||||
pub fn start(context: Context) {
|
pub fn start(context: Context) {
|
||||||
let rt = runtime::Runtime::new().unwrap();
|
let rt = runtime::Runtime::new().unwrap();
|
||||||
rt.block_on(async {
|
rt.block_on(async {
|
||||||
log::info!("Starting Relay on wss://127.0.0.1:8080");
|
log::info!("Starting Relay on wss://0.0.0.0:8080");
|
||||||
|
|
||||||
let routes = routes::routes(context).recover(handle_rejection);
|
let routes = routes::routes(context).recover(handle_rejection);
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ pub fn start(context: Context) {
|
||||||
// .tls()
|
// .tls()
|
||||||
// .cert(CERT)
|
// .cert(CERT)
|
||||||
// .key(KEY)
|
// .key(KEY)
|
||||||
.run(([127, 0, 0, 1], 8080))
|
.run(([0, 0, 0, 0], 8080))
|
||||||
.await;
|
.await;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,9 +14,9 @@ use warp::Filter;
|
||||||
pub fn start(context: Context) {
|
pub fn start(context: Context) {
|
||||||
let rt = runtime::Runtime::new().unwrap();
|
let rt = runtime::Runtime::new().unwrap();
|
||||||
rt.block_on(async {
|
rt.block_on(async {
|
||||||
log::info!("Starting NIP-05 on http://127.0.0.1:8085");
|
log::info!("Starting NIP-05 on http://0.0.0.0:8085");
|
||||||
let routes = routes::routes(context).recover(handle_rejection);
|
let routes = routes::routes(context).recover(handle_rejection);
|
||||||
|
|
||||||
warp::serve(routes).run(([127, 0, 0, 1], 8085)).await;
|
warp::serve(routes).run(([0, 0, 0, 0], 8085)).await;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue