mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 08:58:38 +01:00
Use the S3 object monitor to retrieve Tor exit node lists.
This commit is contained in:
committed by
Jon Chambers
parent
cfa8cbedc1
commit
fbaf4a09e2
@@ -15,37 +15,37 @@ public class TorExitNodeConfiguration {
|
||||
|
||||
@JsonProperty
|
||||
@NotBlank
|
||||
private String listUrl;
|
||||
private String s3Region;
|
||||
|
||||
@JsonProperty
|
||||
@NotBlank
|
||||
private String s3Bucket;
|
||||
|
||||
@JsonProperty
|
||||
@NotBlank
|
||||
private String objectKey;
|
||||
|
||||
@JsonProperty
|
||||
private Duration refreshInterval = Duration.ofMinutes(5);
|
||||
|
||||
@JsonProperty
|
||||
@Valid
|
||||
private CircuitBreakerConfiguration circuitBreakerConfiguration = new CircuitBreakerConfiguration();
|
||||
|
||||
@JsonProperty
|
||||
@Valid
|
||||
private RetryConfiguration retryConfiguration = new RetryConfiguration();
|
||||
|
||||
public String getListUrl() {
|
||||
return listUrl;
|
||||
public String getS3Region() {
|
||||
return s3Region;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public void setListUrl(final String listUrl) {
|
||||
this.listUrl = listUrl;
|
||||
public void setS3Region(final String s3Region) {
|
||||
this.s3Region = s3Region;
|
||||
}
|
||||
|
||||
public String getS3Bucket() {
|
||||
return s3Bucket;
|
||||
}
|
||||
|
||||
public String getObjectKey() {
|
||||
return objectKey;
|
||||
}
|
||||
|
||||
public Duration getRefreshInterval() {
|
||||
return refreshInterval;
|
||||
}
|
||||
|
||||
public CircuitBreakerConfiguration getCircuitBreakerConfiguration() {
|
||||
return circuitBreakerConfiguration;
|
||||
}
|
||||
|
||||
public RetryConfiguration getRetryConfiguration() {
|
||||
return retryConfiguration;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user