dfg-cp-survey-pool/config/.dumpthings.yaml

80 lines
2.1 KiB
YAML

type: collections
version: 2
collections:
public:
default_token: anon_read
schema: 2026.yaml # url to source
curated: public/curated
incoming: public/incoming
backend:
type: record_dir+stl # this is for testing purposes, not necessarily true for prod
audit_backends:
- type: gitaudit
path: audit/public
auto_flush_timeout: 60
auth_sources:
- type: forgejo
url: https://hub.trr379.de/api/v1
instance_id: trr379hub # this will be part of incoming labels for forgejo authenticated users
organization: q02
team: <associated-team-label>
label_type: user
- type: config
protected:
default_token: no_access
schema: 2026.yaml # url to source
curated: protected/curated
incoming: protected/incoming
backend:
type: record_dir+stl # this is for testing purposes, not necessarily true for prod
audit_backends:
- type: gitaudit
path: audit/protected
auto_flush_timeout: 60
auth_sources:
- type: forgejo
url: https://hub.trr379.de/api/v1
instance_id: trr379hub # this will be part of incoming labels for forgejo authenticated users
organization: q02
team: <associated-team-label>
label_type: user
- type: config
tokens:
anon_read:
# Anonymous
representation: anonymous
user_id: obo:NCIT_C71754
collections:
public:
mode: READ_CURATED
incoming_label: 'this-should-not-be-required'
protected:
mode: NOTHING
incoming_label: 'this-should-not-be-required'
no_access:
# None
representation: no_access
user_id: obo:NCIT_C41132
collections:
public:
mode: READ_CURATED
incoming_label: this-should-not-be-required
protected:
mode: NOTHING
incoming_label: this-should-not-be-required
<some-curator>:
user_id: <curator-id>
representation: <curator-token-text>
collections:
public:
mode: CURATOR
incoming_label: <curator-inbox-label>
protected:
mode: CURATOR
incoming_label: <curator-inbox-label>