Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ value, it is recommended to only populate overridden properties in the custom `a
| `hiero.mirror.importer.db.restPassword` | mirror_api_pass | The database password the API uses to connect. |
| `hiero.mirror.importer.db.restUsername` | mirror_api | The username the API uses to connect to the database |
| `hiero.mirror.importer.db.schema` | public | The name of the custom schema database objects will be created in. This is applicable from v2 of the data schema |
| `hiero.mirror.importer.db.sslMode` | disable | The ssl level of protection against Eavesdropping, Man-in-the-middle (MITM) and Impersonation on the db connection. Accepts either disable, allow, prefer, require, verify-ca or verify-full. |
| `hiero.mirror.importer.db.username` | mirror_importer | The Importer username the processor uses to connect to the database |
| `hiero.mirror.importer.downloader.accessKey` | "" | The cloud storage access key |
| `hiero.mirror.importer.downloader.allowAnonymousAccess` | | Whether the cloud storage bucket allows for anonymous access. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import jakarta.validation.constraints.NotNull;
import java.time.Duration;
import lombok.Data;
import org.postgresql.jdbc.SslMode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

Expand Down Expand Up @@ -45,6 +46,9 @@ public class DBProperties {
@NotBlank
private String schema = "";

@NotNull
private SslMode sslMode = SslMode.DISABLE;

@NotBlank
private String tempSchema = "";

Expand Down
2 changes: 2 additions & 0 deletions importer/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ hiero:
restPassword: mirror_api_pass
restUsername: mirror_api
schema: public
sslMode: disable
tempSchema: temporary
username: mirror_importer
migration:
Expand Down Expand Up @@ -98,6 +99,7 @@ spring:
#loggerLevel: TRACE
logUnclosedConnections: true
reWriteBatchedInserts: true
sslmode: ${hiero.mirror.importer.db.sslMode}
maximumPoolSize: 20
flyway:
baselineOnMigrate: true
Expand Down
Loading