A lexicon-driven AppView for ATProto. happyview.dev
backfill firehose jetstream atproto appview oauth lexicon
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: add AIP_PUBLIC_URL for frontend-facing AIP address

Trezy 7407092e 0bdf7b4c

+7 -1
+1
src/aip.rs
··· 102 102 port: 3000, 103 103 database_url: String::new(), 104 104 aip_url: aip_url.into(), 105 + aip_public_url: String::new(), 105 106 tap_url: String::new(), 106 107 tap_admin_password: None, 107 108 relay_url: String::new(),
+4
src/config.rs
··· 7 7 pub port: u16, 8 8 pub database_url: String, 9 9 pub aip_url: String, 10 + pub aip_public_url: String, 10 11 pub tap_url: String, 11 12 pub tap_admin_password: Option<String>, 12 13 pub relay_url: String, ··· 24 25 .unwrap_or(3000), 25 26 database_url: env::var("DATABASE_URL").expect("DATABASE_URL must be set"), 26 27 aip_url: env::var("AIP_URL").expect("AIP_URL must be set"), 28 + aip_public_url: env::var("AIP_PUBLIC_URL") 29 + .unwrap_or_else(|_| env::var("AIP_URL").expect("AIP_URL must be set")), 27 30 tap_url: env::var("TAP_URL").unwrap_or_else(|_| "http://localhost:2480".into()), 28 31 tap_admin_password: env::var("TAP_ADMIN_PASSWORD").ok(), 29 32 relay_url: env::var("RELAY_URL").unwrap_or_else(|_| "https://bsky.network".into()), ··· 75 78 port: 8080, 76 79 database_url: String::new(), 77 80 aip_url: String::new(), 81 + aip_public_url: String::new(), 78 82 tap_url: String::new(), 79 83 tap_admin_password: None, 80 84 relay_url: String::new(),
+1 -1
src/server.rs
··· 42 42 } 43 43 44 44 async fn config_endpoint(State(state): State<AppState>) -> Json<serde_json::Value> { 45 - Json(serde_json::json!({ "aip_url": state.config.aip_url })) 45 + Json(serde_json::json!({ "aip_url": state.config.aip_public_url })) 46 46 } 47 47 48 48 async fn get_profile(
+1
tests/common/app.rs
··· 35 35 port: 0, 36 36 database_url: String::new(), // not used — pool is already connected 37 37 aip_url: mock_url.clone(), 38 + aip_public_url: mock_url.clone(), 38 39 tap_url: "http://localhost:2480".into(), 39 40 tap_admin_password: None, 40 41 relay_url: mock_url.clone(),