Update listen ports

This commit is contained in:
Tony Klink 2024-01-12 16:19:31 -06:00
parent 488fa685d3
commit e9fcc71382
Signed by: klink
GPG key ID: 85175567C4D19231
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}); });
} }

View file

@ -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;
}) })
} }