forked from fcrepo/fcrepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* FCREPO-2402 - Adds initial config to allow for using AWS S3 for binary storage * Adds garbageCollection block to new repository.json files based on FCREPO-2406 * Adds cacheSize setting to new repository.json files based on changes recommended in FCREPO-2105
- Loading branch information
Showing
5 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
fcrepo-configs/src/main/resources/config/file-s3/repository.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name" : "repo", | ||
"jndiName" : "", | ||
"workspaces" : { | ||
"predefined" : ["default"], | ||
"default" : "default", | ||
"allowCreation" : true, | ||
"cacheSize" : 10000 | ||
}, | ||
"storage" : { | ||
"persistence": { | ||
"type": "file", | ||
"path" : "${fcrepo.object.directory:target/objects}" | ||
}, | ||
"binaryStorage" : { | ||
"type" : "s3", | ||
"username" : "${aws.accessKeyId}", | ||
"password" : "${aws.secretKey}", | ||
"bucketName" : "${aws.bucket}" | ||
} | ||
}, | ||
"security" : { | ||
"anonymous" : { | ||
"roles" : ["readonly","readwrite","admin"], | ||
"useOnFailedLogin" : false | ||
}, | ||
"providers" : [ | ||
{ "classname" : "org.fcrepo.auth.common.BypassSecurityServletAuthenticationProvider" } | ||
] | ||
}, | ||
"garbageCollection" : { | ||
"threadPool" : "modeshape-gc", | ||
"initialTime" : "00:00", | ||
"intervalInHours" : 24 | ||
}, | ||
"node-types" : ["fedora-node-types.cnd"] | ||
} |
40 changes: 40 additions & 0 deletions
40
fcrepo-configs/src/main/resources/config/jdbc-mysql-s3/repository.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name" : "repo", | ||
"jndiName" : "", | ||
"workspaces" : { | ||
"predefined" : ["default"], | ||
"default" : "default", | ||
"allowCreation" : true, | ||
"cacheSize" : 10000 | ||
}, | ||
"storage" : { | ||
"persistence": { | ||
"type" : "db", | ||
"connectionUrl": "jdbc:mysql://${fcrepo.mysql.host:localhost}:${fcrepo.mysql.port:3306}/fcrepo?createDatabaseIfNotExist=true", | ||
"driver" : "com.mysql.jdbc.Driver", | ||
"username" : "${fcrepo.mysql.username}", | ||
"password" : "${fcrepo.mysql.password}" | ||
}, | ||
"binaryStorage" : { | ||
"type" : "s3", | ||
"username" : "${aws.accessKeyId}", | ||
"password" : "${aws.secretKey}", | ||
"bucketName" : "${aws.bucket}" | ||
} | ||
}, | ||
"security" : { | ||
"anonymous" : { | ||
"roles" : ["readonly","readwrite","admin"], | ||
"useOnFailedLogin" : false | ||
}, | ||
"providers" : [ | ||
{ "classname" : "org.fcrepo.auth.common.BypassSecurityServletAuthenticationProvider" } | ||
] | ||
}, | ||
"garbageCollection" : { | ||
"threadPool" : "modeshape-gc", | ||
"initialTime" : "00:00", | ||
"intervalInHours" : 24 | ||
}, | ||
"node-types" : ["fedora-node-types.cnd"] | ||
} |
40 changes: 40 additions & 0 deletions
40
fcrepo-configs/src/main/resources/config/jdbc-postgresql-s3/repository.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name" : "repo", | ||
"jndiName" : "", | ||
"workspaces" : { | ||
"predefined" : ["default"], | ||
"default" : "default", | ||
"allowCreation" : true, | ||
"cacheSize" : 10000 | ||
}, | ||
"storage" : { | ||
"persistence": { | ||
"type" : "db", | ||
"connectionUrl": "jdbc:postgresql://${fcrepo.postgresql.host:localhost}:${fcrepo.postgresql.port:5432}/fcrepo", | ||
"driver" : "org.postgresql.Driver", | ||
"username" : "${fcrepo.postgresql.username}", | ||
"password" : "${fcrepo.postgresql.password}" | ||
}, | ||
"binaryStorage" : { | ||
"type" : "s3", | ||
"username" : "${aws.accessKeyId}", | ||
"password" : "${aws.secretKey}", | ||
"bucketName" : "${aws.bucket}" | ||
} | ||
}, | ||
"security" : { | ||
"anonymous" : { | ||
"roles" : ["readonly","readwrite","admin"], | ||
"useOnFailedLogin" : false | ||
}, | ||
"providers" : [ | ||
{ "classname" : "org.fcrepo.auth.common.BypassSecurityServletAuthenticationProvider" } | ||
] | ||
}, | ||
"garbageCollection" : { | ||
"threadPool" : "modeshape-gc", | ||
"initialTime" : "00:00", | ||
"intervalInHours" : 24 | ||
}, | ||
"node-types" : ["fedora-node-types.cnd"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters