You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+85-64Lines changed: 85 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,98 +34,119 @@ This addon is particularly useful for:
34
34
## Installation
35
35
36
36
1. Download the latest release of BlueMapS3Storage from the [releases page](https://github.com/TheMeinerLP/BlueMapS3Storage/releases)
37
-
2. Place the JAR file in the `plugins/BlueMap/addons` directory of your server
37
+
2. Place the JAR file in the `plugins/BlueMap/packs` directory of your server
38
38
3. Restart your server or reload BlueMap
39
39
40
40
## Configuration
41
41
42
-
To use S3 storage with BlueMap, you need to modify your BlueMap configuration to use the S3 storage type. Add the following to your `bluemap.conf`file:
42
+
To use S3 storage with BlueMap, you need to create or modify the S3 storage configuration file. Create a file named `s3.conf`in the `plugins/BlueMap/storages` directory with the following content:
43
43
44
44
```hocon
45
-
storage {
46
-
type: "themeinerlp:s3"
47
-
48
-
# S3 bucket name
49
-
bucketName: "bluemap-storage"
50
-
51
-
# AWS region or "Minio" for MinIO
52
-
region: "us-east-1"
53
-
54
-
# S3 credentials
55
-
accessKeyId: "your-access-key"
56
-
secretAccessKey: "your-secret-key"
57
-
58
-
# Optional: Custom endpoint URL for S3-compatible services
59
-
# Leave empty for AWS S3
60
-
endpointUrl: "http://localhost:9000"
61
-
62
-
# Optional: Enable path-style access instead of virtual-hosted style
63
-
# Set to "true" for MinIO and some other S3-compatible services
64
-
pathStyleAccessEnabled: "true"
65
-
66
-
# Optional: Compression type to use for storing data
67
-
# Options include: "gzip" (default), "none", or other compression types supported by BlueMap
68
-
compression: "gzip"
69
-
}
45
+
## ##
46
+
## BlueMap ##
47
+
## Storage-Config ##
48
+
## ##
49
+
50
+
# The storage-type of this storage.
51
+
# Depending on this setting, different config-entries are allowed/expected in this config file.
52
+
# Don't change this value! (If you want a different storage-type, check out the other example-configs)
53
+
storage-type: "themeinerlp:s3"
54
+
55
+
# The compression-type that bluemap will use to compress generated map-data.
56
+
# Available compression-types are:
57
+
# - gzip
58
+
# - zstd
59
+
# - deflate
60
+
# - none
61
+
# The default is: gzip
62
+
compression: gzip
63
+
64
+
# The S3 storage
65
+
bucket-name: "bluemap-storage"
66
+
67
+
# AWS region or "Minio" for MinIO
68
+
region: "us-east-1"
69
+
70
+
# S3 credentials
71
+
access-key-id: "your-access-key"
72
+
secret-access-key: "your-secret-key"
73
+
74
+
# Optional: Custom endpoint URL for S3-compatible services
75
+
# Leave empty for AWS S3
76
+
endpoint-url: "http://localhost:9000"
77
+
78
+
# Optional: Enable path-style access instead of virtual-hosted style
79
+
# Set to "true" for MinIO and some other S3-compatible services
80
+
path-style-access-enabled: "true"
70
81
```
71
82
72
83
### Configuration Options
73
84
74
85
| Option | Description | Default |
75
86
|--------|-------------|---------|
76
-
|`bucketName`| The name of the S3 bucket to use |`bluemap-storage`|
77
-
|`region`| The AWS region where the bucket is located |`Minio`|
78
-
|`accessKeyId`| The AWS access key ID for authentication |`bluemap`|
79
-
|`secretAccessKey`| The AWS secret access key for authentication |`bluemap-secret`|
80
-
|`endpointUrl`| Optional: The endpoint URL for S3-compatible services (leave empty for AWS S3) |`http://localhost:9000`|
0 commit comments