Commit 51d67ae1 by carrieyzzhang

bucket config

parent 7ec5797e
...@@ -94,6 +94,7 @@ ...@@ -94,6 +94,7 @@
<ddb.accesskey>AKIAOS2UEXIFNVER2O6A</ddb.accesskey> <ddb.accesskey>AKIAOS2UEXIFNVER2O6A</ddb.accesskey>
<ddb.secretkey>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</ddb.secretkey> <ddb.secretkey>3CQeG23urzxP7J5Vj4K7n3iKZIrmErukhvWGKsHI</ddb.secretkey>
<bucket>reyundownload-test</bucket>
<report.export.task>ExportReportTask</report.export.task> <report.export.task>ExportReportTask</report.export.task>
...@@ -210,6 +211,7 @@ ...@@ -210,6 +211,7 @@
<ddb.accesskey>AKIAOS2UEXIFNVER2O6A</ddb.accesskey> <ddb.accesskey>AKIAOS2UEXIFNVER2O6A</ddb.accesskey>
<ddb.secretkey>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</ddb.secretkey> <ddb.secretkey>3CQeG23urzxP7J5Vj4K7n3iKZIrmErukhvWGKsHI</ddb.secretkey>
<bucket>reyundownload-test</bucket>
<report.export.task>ExportReportTask</report.export.task> <report.export.task>ExportReportTask</report.export.task>
...@@ -285,6 +287,7 @@ ...@@ -285,6 +287,7 @@
<ddb.accesskey>AKIAPMJ4QRXP6BECFUVQ</ddb.accesskey> <ddb.accesskey>AKIAPMJ4QRXP6BECFUVQ</ddb.accesskey>
<ddb.secretkey>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</ddb.secretkey> <ddb.secretkey>+hQ6P0FOYqCLRo70d96Q+2dcH+Ag8QsfniNrBn73</ddb.secretkey>
<bucket>reyundownload</bucket>
<report.export.task>ExportReportTask</report.export.task> <report.export.task>ExportReportTask</report.export.task>
......
...@@ -26,7 +26,7 @@ public class ExportReportTask { ...@@ -26,7 +26,7 @@ public class ExportReportTask {
private static Logger logger = LoggerFactory.getLogger(ExportReportTask.class); private static Logger logger = LoggerFactory.getLogger(ExportReportTask.class);
private static int EXPIRE_PERIOD = (int) DateUtils.MILLIS_PER_MINUTE * 1 / 1000; private static int EXPIRE_PERIOD = (int) DateUtils.MILLIS_PER_MINUTE * 1 / 1000;
private static final String S3_DOWNLOAD_BUCKET = "reyundownload-test"; private static final String S3_DOWNLOAD_BUCKET = Constant.bucket;
private static final String DOWNLOAD_PATH = "trackingio/reportdownload/"; private static final String DOWNLOAD_PATH = "trackingio/reportdownload/";
......
...@@ -41,7 +41,7 @@ public class ExportReportThread extends Thread { ...@@ -41,7 +41,7 @@ public class ExportReportThread extends Thread {
private RetentionService retentionService = AppUtils.getApplicationContext().getBean(RetentionService.class); private RetentionService retentionService = AppUtils.getApplicationContext().getBean(RetentionService.class);
private static final String S3_DOWNLOAD_BUCKET = "reyundownload"; private static final String S3_DOWNLOAD_BUCKET = Constant.bucket;
private static final String DOWNLOAD_PATH = "trackingio/reportdownload/"; private static final String DOWNLOAD_PATH = "trackingio/reportdownload/";
......
...@@ -62,4 +62,5 @@ public class Constant { ...@@ -62,4 +62,5 @@ public class Constant {
public static ResourceBundle keyBuddle = ResourceBundle.getBundle("key"); public static ResourceBundle keyBuddle = ResourceBundle.getBundle("key");
public static String accessKey = keyBuddle.getString("ddb.accesskey"); public static String accessKey = keyBuddle.getString("ddb.accesskey");
public static String secretKey = keyBuddle.getString("ddb.secretkey"); public static String secretKey = keyBuddle.getString("ddb.secretkey");
public static String bucket = keyBuddle.getString("bucket");
} }
# Redis common settings # Redis common settings
ddb.accesskey=${ddb.accesskey} ddb.accesskey=${ddb.accesskey}
ddb.secretkey=${ddb.secretkey} ddb.secretkey=${ddb.secretkey}
bucket=${bucket}
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