APIs for links and references in the ATmosphere
7
fork

Configure Feed

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

add acme contact

idk if this helps rate-limiting, prob not

+11 -1
+6
slingshot/src/main.rs
··· 31 /// - TODO: a rate-limiter will be installed 32 #[arg(long)] 33 host: Option<String>, 34 /// a location to cache acme https certs 35 /// 36 /// only used if --host is specified. omitting requires re-requesting certs ··· 99 identity, 100 repo, 101 args.host, 102 args.certs, 103 server_shutdown, 104 )
··· 31 /// - TODO: a rate-limiter will be installed 32 #[arg(long)] 33 host: Option<String>, 34 + /// email address for letsencrypt contact 35 + /// 36 + /// recommended in production, i guess? 37 + #[arg(long)] 38 + acme_contact: Option<String>, 39 /// a location to cache acme https certs 40 /// 41 /// only used if --host is specified. omitting requires re-requesting certs ··· 104 identity, 105 repo, 106 args.host, 107 + args.acme_contact, 108 args.certs, 109 server_shutdown, 110 )
+5 -1
slingshot/src/server.rs
··· 336 identity: Identity, 337 repo: Repo, 338 host: Option<String>, 339 certs: Option<PathBuf>, 340 _shutdown: CancellationToken, 341 ) -> Result<(), ServerError> { ··· 371 let mut auto_cert = AutoCert::builder() 372 .directory_url(LETS_ENCRYPT_PRODUCTION) 373 .domain(&host); 374 if let Some(certs) = certs { 375 - auto_cert = auto_cert.cache_path(certs) 376 } 377 let auto_cert = auto_cert.build().map_err(ServerError::AcmeBuildError)?; 378
··· 336 identity: Identity, 337 repo: Repo, 338 host: Option<String>, 339 + acme_contact: Option<String>, 340 certs: Option<PathBuf>, 341 _shutdown: CancellationToken, 342 ) -> Result<(), ServerError> { ··· 372 let mut auto_cert = AutoCert::builder() 373 .directory_url(LETS_ENCRYPT_PRODUCTION) 374 .domain(&host); 375 + if let Some(contact) = acme_contact { 376 + auto_cert = auto_cert.contact(contact); 377 + } 378 if let Some(certs) = certs { 379 + auto_cert = auto_cert.cache_path(certs); 380 } 381 let auto_cert = auto_cert.build().map_err(ServerError::AcmeBuildError)?; 382