@@ -62,6 +62,7 @@ pub(crate) struct ProxyServer {
6262 /// Shared log receiver - written by `GrpcLogLayer` for every tracing event.
6363 /// Drained during ACME execution to collect proxy log lines for error reporting.
6464 logs_rx : LogsReceiver ,
65+ acme_staging : bool ,
6566}
6667
6768impl ProxyServer {
@@ -74,6 +75,7 @@ impl ProxyServer {
7475 https_cert_tx : broadcast:: Sender < ( String , String ) > ,
7576 port80_pause_tx : Option < mpsc:: Sender < ( oneshot:: Sender < ( ) > , oneshot:: Receiver < ( ) > ) > > ,
7677 logs_rx : LogsReceiver ,
78+ acme_staging : bool ,
7779 ) -> Self {
7880 Self {
7981 cookie_key,
@@ -88,6 +90,7 @@ impl ProxyServer {
8890 https_cert_tx,
8991 port80_pause_tx,
9092 logs_rx,
93+ acme_staging,
9194 }
9295 }
9396
@@ -212,6 +215,7 @@ impl Clone for ProxyServer {
212215 https_cert_tx : self . https_cert_tx . clone ( ) ,
213216 port80_pause_tx : self . port80_pause_tx . clone ( ) ,
214217 logs_rx : Arc :: clone ( & self . logs_rx ) ,
218+ acme_staging : self . acme_staging ,
215219 }
216220 }
217221}
@@ -389,6 +393,7 @@ impl proxy_server::Proxy for ProxyServer {
389393
390394 let pause_tx = self . port80_pause_tx . clone ( ) ;
391395 let logs_rx = Arc :: clone ( & self . logs_rx ) ;
396+ let acme_staging = self . acme_staging ;
392397 tokio:: spawn ( async move {
393398 // Request a graceful hand-off of port 80 from the main HTTP server if it is bound
394399 // there, so the ACME challenge listener can bind.
@@ -432,8 +437,14 @@ impl proxy_server::Proxy for ProxyServer {
432437 }
433438 } ) ;
434439
435- match acme:: run_acme_http01 ( domain. clone ( ) , existing_credentials, permit, progress_tx)
436- . await
440+ match acme:: run_acme_http01 (
441+ domain. clone ( ) ,
442+ existing_credentials,
443+ acme_staging,
444+ permit,
445+ progress_tx,
446+ )
447+ . await
437448 {
438449 Ok ( acme_result) => {
439450 let cert_event = AcmeIssueEvent {
0 commit comments