Skip to content

Commit

Permalink
Add the domain to config.toml
Browse files Browse the repository at this point in the history
This should most probably be turned into an env var.
  • Loading branch information
amirRamirfatahi committed Oct 2, 2024
1 parent 5fa818b commit b3b92cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pubky-homeserver/src/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ testnet = false
# Secret key (in hex) to generate the Homeserver's Keypair
secret_key = "0000000000000000000000000000000000000000000000000000000000000000"
# Domain to be published in Pkarr records for this server to be accessible by.
domain = "localhost"
domain = "backend.privky.app"
# Port for the Homeserver to listen on.
port = 6287
# Storage directory Defaults to <System's Data Directory>
Expand Down
4 changes: 2 additions & 2 deletions pubky-homeserver/src/routes/auth.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use axum::{
debug_handler,
extract::State,
http::{uri::Scheme, StatusCode, Uri},
http::{StatusCode, Uri},
response::IntoResponse,
};
use axum_extra::{headers::UserAgent, TypedHeader};
Expand Down Expand Up @@ -89,7 +89,7 @@ pub async fn signin(
State(state): State<AppState>,
user_agent: Option<TypedHeader<UserAgent>>,
cookies: Cookies,
uri: Uri,
_uri: Uri,
body: Bytes,
) -> Result<impl IntoResponse> {
let token = state.verifier.verify(&body)?;
Expand Down

0 comments on commit b3b92cf

Please sign in to comment.