-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
57 lines (53 loc) · 2.4 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[proxy]
# ID of the proxy
endpoint_id= "01H81W0ZMB54YEP5711Q2BK46V"
# Private ed25519 key of the proxy (can also be provided via env-var PROXY_PRIVATE_KEY)
private_key="MC4CAQAwBQYDK2VwBCIEIM/FI+bYw+auSKGyGqeISRIEjofvZV/lbK7QL1wkuCey"
public_key="MCowBQYDK2VwAyEAnouQBh4GHPCD/k85VIzPyCdOijVg2qlzt2TELwTMy4c="
# The serial number of the proxy (will be received from the server on registration)
serial=1337
# Optional will disable notification sync if not set
aruna_url="http://localhost:50051"
enable_ingest=true # Set to true to enable the ingest service
admin_ids=["01H819G3ZMK5DC9Q5PD18N9SXB"] # Admins can access the ingest service
grpc_server="0.0.0.0:50052"
remote_synced=true
[persistence.postgres]
host = "localhost"
port = 5433
user = "yugabyte"
database = "proxy"
# Can also be provided via env-var POSTGRES_PASSWORD
password = "yugabyte"
schema = './src/database/schema.sql'
[frontend]
server="localhost:1337"
hostname="localhost:1337"
[backend.s3]
# s3 host
host="http://localhost:9000"
# (UNSUPPORTED) currently only env AWS_ACCESS_KEY_ID
# access_key="minioadmin"
# (UNSUPPORTED) currently only env AWS_SECRET_ACCESS
# secret_key="minioadmin"
encryption=true
compression=true
deduplication=true # COMING SOON If deduplication is enabled, the backend will check if an object with the same hash already exists and return the existing object if it does
tmp="tmp12345" # Will generate a random temp bucket_name if not set
# dropbox_bucket="" # Set value to set a dropbox bucket
# A scheme for the backend to use when deciding where to store objects
# The following variables are available:
# - {{PROJECT_NAME}} - The project name (lowercase)
# - {{PROJECT_ID}} - The project ULID (lowercase)
# - {{COLLECTION_NAME}} - The collection name (if present)
# - {{COLLECTION_ID}} - The collection ULID (if present)
# - {{DATASET_NAME}} - The dataset name (if present)
# - {{DATASET_ID}} - The dataset ULID (if present)
# - {{OBJECT_NAME}} - The object name
# - {{OBJECT_ID}} - The object ULID
# - {{RANDOM:x}} - A random string of (x == integer) lower_case ascii characters
# - {{PROXY_ID}} - The proxy ULID (lowercase)
backend_scheme="s3://{{PROJECT_ID}}-{{PROJECT_NAME}}/{{COLLECTION_NAME}}/{{DATASET_NAME}}/{{RANDOM:10}}/{{OBJECT_NAME}}"
[[rules]]
target="OBJECT" # ROOT, OBJECT, OBJECTPACKAGE, BUNDLE, REPLICATIONIN, REPLICATIONOUT,
rule = 'input.object_hierarchy.project.name != "test"' # Example rule: Only allow projects that are not named "test"