comparison README.md @ 15:2a02b21f0a19

migration + storage structure
author Alain Mazy
date Tue, 01 Sep 2020 13:08:49 +0200
parents 393fcf337462
children 968eb1c78aed
comparison
equal deleted inserted replaced
14:234946ea2038 15:2a02b21f0a19
8 8
9 Here's a sample configuration file of the `StorageEncryption` section of the plugins: 9 Here's a sample configuration file of the `StorageEncryption` section of the plugins:
10 10
11 ``` 11 ```
12 { 12 {
13 "StorageEncryption" : { 13 "GoogleCloudStorage" : {
14 "Enable": true, 14 "StorageEncryption" : {
15 "MasterKey": [3, "/path/to/master.key"], // key id - path to the base64 encoded key 15 "Enable": true,
16 "PreviousMasterKeys" : [ 16 "MasterKey": [3, "/path/to/master.key"], // key id - path to the base64 encoded key
17 [ 1, "/path/to/previous1.key"], 17 "PreviousMasterKeys" : [
18 [ 2, "/path/to/previous2.key"] 18 [ 1, "/path/to/previous1.key"],
19 ], 19 [ 2, "/path/to/previous2.key"]
20 "MaxConcurrentInputSize" : 1024 // size in MB 20 ],
21 "MaxConcurrentInputSize" : 1024 // size in MB
22 }
21 } 23 }
22 } 24 }
23 ``` 25 ```
24 26
25 ### Compile Google plugin ### 27 ### Compile Google plugin ###
27 * `./vcpkg install google-cloud-cpp` 29 * `./vcpkg install google-cloud-cpp`
28 * `./vcpkg install cryptopp` 30 * `./vcpkg install cryptopp`
29 * `hg clone ...` 31 * `hg clone ...`
30 * `mkdir -p build/google` 32 * `mkdir -p build/google`
31 * `cd build/google` 33 * `cd build/google`
32 * `cmake -DCMAKE_TOOLCHAIN_FILE=[vcpkg root]\scripts\buildsystems\vcpkg.cmake ../../orthanc-object-storage/google` 34 * `cmake -DCMAKE_TOOLCHAIN_FILE=[vcpkg root]\scripts\buildsystems\vcpkg.cmake ../../orthanc-object-storage/Google`
33 35
34 ### Google plugin configuration ### 36 ### Google plugin configuration ###
35 37
36 ``` 38 ```
37 "GoogleCloudStorage" : { 39 "GoogleCloudStorage" : {
38 "ServiceAccountFile": "/.../googleServiceAccountFile.json", 40 "ServiceAccountFile" : "/.../googleServiceAccountFile.json",
39 "BucketName": "test-orthanc-storage-plugin" 41 "BucketName": "test-orthanc-storage-plugin",
42 "StorageEncryption" : {...},
43 "StorageStructure" : "flat",
44 "MigrationFromFileSystemEnabled" : false
40 } 45 }
41 46
42 ``` 47 ```
43 48
44 ## Azure Blob Storage plugin ## 49 ## Azure Blob Storage plugin ##
58 ### Azure plugin configuration ### 63 ### Azure plugin configuration ###
59 64
60 ``` 65 ```
61 "AzureBlobStorage" : { 66 "AzureBlobStorage" : {
62 "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=xxxxxxxxx;AccountKey=yyyyyyyy===;EndpointSuffix=core.windows.net", 67 "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=xxxxxxxxx;AccountKey=yyyyyyyy===;EndpointSuffix=core.windows.net",
63 "ContainerName" : "test-orthanc-storage-plugin" 68 "ContainerName" : "test-orthanc-storage-plugin",
69 "StorageEncryption" : {...},
70 "StorageStructure" : "flat",
71 "MigrationFromFileSystemEnabled" : false
64 } 72 }
65 ``` 73 ```
66 74
67 ## AWS S3 Storage plugin ## 75 ## AWS S3 Storage plugin ##
68 76
101 "Region" : "eu-central-1", 109 "Region" : "eu-central-1",
102 "AccessKey" : "AKXXX", 110 "AccessKey" : "AKXXX",
103 "SecretKey" : "RhYYYY", 111 "SecretKey" : "RhYYYY",
104 "Endpoint": "", // optional: custom endpoint 112 "Endpoint": "", // optional: custom endpoint
105 "ConnectionTimeout": 30, // optional: connection timeout in seconds 113 "ConnectionTimeout": 30, // optional: connection timeout in seconds
106 "RequestTimeout": 1200 // optional: request timeout in seconds (max time to upload/download a file) 114 "RequestTimeout": 1200, // optional: request timeout in seconds (max time to upload/download a file)
115 "StorageEncryption" : {...},
116 "StorageStructure" : "flat",
117 "MigrationFromFileSystemEnabled" : false
107 } 118 }
108 ``` 119 ```