-
Notifications
You must be signed in to change notification settings - Fork 5
/
cozy-registry.example.yml
119 lines (105 loc) · 3.68 KB
/
cozy-registry.example.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# server host (serve command) - flag --host
host: "127.0.0.1"
# server port (serve command) - flag --port
port: 8081
# Network topology in front of cozy apps registry
# allowed values are:
# - direct: (default) application is directly serving clients, with no reverse proxy. Client IP is available at network level
# - xff: A reverse proxy is forwarding trafic to the application and save the client's real IP in the X-Forwarded-For HTTP header
# - xrip: A reverse proxy is forwarding trafic to the application and save the client's real IP in the X-Real-IP HTTP header
access_topology: "direct"
couchdb:
# CouchDB server url - flag --couchdb-url
url: http://localhost:5984
# CouchDB user - flag --couchdb-user
user: admin
# CouchDB password - flag --couchdb-password
password: password
# CouchDB prefix for the registries databases - flag --couchdb-prefix
# prefix: registry1
redis:
addrs: localhost:6379
# master:
# password: password
databases:
versionsList: 0
versionsLatest: 1
# advanced parameters for advanced users
# max_retries: 2
# dial_timeout: 5s
# read_timeout: 3s
# write_timeout: 3s
# pool_size: 10 * runtime.NumCPU()
# pool_timeout: 3s
# idle_timeout: 5m
# idle_check_frequency: 1m
# read_only_slave: false
# Storage - you should use swift in production, but for local development, it
# can easier to use the local file system. If present, the fs configuration
# parameter allows to use a directory for the storage (and will skip Swift).
fs: .storage
# Swift configuration
swift:
auth_url: http://localhost:1234
username: admin
api_key: s3cret!
endpoint_type: public
tenant: demo
domain: default
# Conservation configuration allows to manage paramaters of how many app versions
# of each channel must be kept during cleaning tasks
conservation:
enable_background_cleaning: false # Specifies if the app cleaning task is enabled
month: 2 # Specifies how many months the cleaning job should lookup for. Versions anterior to this parameter will be removed.
major: 2 # Specifies how many major versions should be kept
minor: 2 # Specifies how many minor versions should be kept for each major version
# List of supported spaces by the registry.
#
# If specified, the routes of the registry API will be formed with as follow:
# /:space-name/registry/
#
# The `__default__` name is a special identifier to specify a space with an
# empty name, that will respond on /registry/
#
# spaces: __default__ registry1 registry2
#
# Domain space links a domain host to a space
domain_space:
link.cozycloud.cc: "__default__"
foo-link.bar.fr: "foobar"
# Trusted domains is used by the universal link to allow redirections on trusted
# domains
trusted_domains:
__default__:
- cloud
- mycozy.cloud
foobar:
- foobar.com
- foobar.org
# Trusted protocols is used by the universal link to allow redirections on
# trusted protocols
trusted_protocols:
__default__:
- cozy
# List of virtual spaces.
#
# A virtual space is a read-only view on another space with a filter to
# restrict the list of available applications. For example, we can use a
# `select` filter to create a virtual space with just a few applications, or a
# `reject` filter to have all the connectors and webapps, but not the google
# and facebook connectors.
#
# virtual_spaces:
# registry3:
# source: __default__
# filter: select
# slugs: ['home', 'settings', 'drive', 'contacts', 'store']
# registry4:
# source: __default__
# filter: reject
# slugs: ['google', 'facebook']
# Path to the session secret file containing the master secret to generate
# session token.
#
# Should be generated with the "gen-session-secret" command.
session-secret: sessionsecret.key