File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub struct Config {
28
28
29
29
// CloudFront domain which we can access
30
30
// public S3 files through
31
- pub ( crate ) s3_static_domain : String ,
31
+ pub ( crate ) s3_static_root_path : String ,
32
32
33
33
// Github authentication
34
34
pub ( crate ) github_accesstoken : Option < String > ,
@@ -131,7 +131,7 @@ impl Config {
131
131
#[ cfg( test) ]
132
132
s3_bucket_is_temporary : false ,
133
133
134
- s3_static_domain : env ( "S3_STATIC_DOMAIN " , "https://static.docs.rs" . to_string ( ) ) ?,
134
+ s3_static_root_path : env ( "S3_STATIC_ROOT_PATH " , "https://static.docs.rs" . to_string ( ) ) ?,
135
135
136
136
github_accesstoken : maybe_env ( "DOCSRS_GITHUB_ACCESSTOKEN" ) ?,
137
137
github_updater_min_rate_limit : env ( "DOCSRS_GITHUB_UPDATER_MIN_RATE_LIMIT" , 2500 ) ?,
Original file line number Diff line number Diff line change @@ -761,7 +761,7 @@ pub fn download_handler(req: &mut Request) -> IronResult<Response> {
761
761
762
762
Ok ( super :: redirect ( ctry ! (
763
763
req,
764
- Url :: parse( & format!( "{}/{}" , config. s3_static_domain , archive_path) )
764
+ Url :: parse( & format!( "{}/{}" , config. s3_static_root_path , archive_path) )
765
765
) ) )
766
766
}
767
767
You can’t perform that action at this time.
0 commit comments