Commit 256da07e authored by Evgeni Sladkovskii's avatar Evgeni Sladkovskii

updated config to use env vars and default values

parent dd808826
......@@ -30,7 +30,7 @@ public class SegmentsBackupService {
backupEvents();
backupSnapshots();
} else {
log.info("No new segments");
log.debug("No new segments");
}
}
......
......@@ -3,7 +3,7 @@ spring:
name: axondb-backup-client
server:
port: 9080
port: ${SERVER_PORT:9080}
management:
endpoints:
......@@ -13,16 +13,16 @@ management:
include: "*"
backup:
fixedDelayMs: 60000
initialDelayMs: 60000
axondbHost: http://127.0.0.1:8023/axondb
fixedDelayMs: ${BACKUP_DELAY:60000}
initialDelayMs: ${BACKUP_INITIAL_DELAY:60000}
axondbHost: ${AXON_DB_HOST:"http://127.0.0.1:8023/axondb"}
axondbToken: ${AXON_DB_TOKEN:"dummy-token"}
eventsUrl: /v1/backup/filenames?type=Event
snapshotsUrl: /v1/backup/filenames?type=Snapshot
dbDumpUrl: /v1/backup/createControlDbBackup
axondbToken: ${AXON_DB_TOKEN:"dummy-token"}
eventsBackupPath: "/eventsBackup/"
snapshotsBackupPath: "/snapshotsBackup/"
dbDumpBackupPath: "/dbDumpBackup/"
\ No newline at end of file
eventsBackupPath: ${EVENTS_BACKUP_PATH:"/backups/"}
snapshotsBackupPath: ${SNAPSHOTS_BACKUP_PATH:"/backups/"}
dbDumpBackupPath: ${CONTROL_DB_BACKUP_PATH:"/backups/"}
\ No newline at end of file
......@@ -16,7 +16,7 @@ import static io.axoniq.axondb.client.AxonDBConfiguration.newBuilder;
import static java.util.UUID.randomUUID;
import static org.axonframework.config.DefaultConfigurer.defaultConfiguration;
@Ignore("for manual usage")
//@Ignore("for manual usage")
public class AxonDbLoadTest {
EventBus eventBus = eventBus();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment