@@ -6,130 +6,130 @@ description: >
66 Configuration for the storageprovider service
77---
88
9- # _ struct: config _
9+ # _ struct: eventconfig _
1010
11- {{% dir name="driver " type="string" default="localhome " %}}
12- The storage driver to be used. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L65 )
11+ {{% dir name="nats_address " type="string" default="address of the nats server " %}}
12+ [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L77 )
1313{{< highlight toml >}}
1414[ grpc.services.storageprovider]
15- driver = "localhome "
15+ nats_address = "address of the nats server "
1616{{< /highlight >}}
1717{{% /dir %}}
1818
19- {{% dir name="drivers " type="map [ string] map [ string ] interface{} " default="localhome " %}}
20- [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L66 )
19+ {{% dir name="nats_clusterid " type="string" default="clusterid of the nats server " %}}
20+ [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L78 )
2121{{< highlight toml >}}
22- [ grpc.services.storageprovider.drivers.localhome]
23- root = "/var/tmp/reva/"
24- share_folder = "/MyShares"
25- user_layout = "{{.Username}}"
26-
22+ [ grpc.services.storageprovider]
23+ nats_clusterid = "clusterid of the nats server"
2724{{< /highlight >}}
2825{{% /dir %}}
2926
30- {{% dir name="data_server_url " type="string " default=" http://localhost/data " %}}
31- The URL for the data server. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L67 )
27+ {{% dir name="tls_insecure " type="bool " default=Whether to verify the server TLS certificates. %}}
28+ [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L79 )
3229{{< highlight toml >}}
3330[ grpc.services.storageprovider]
34- data_server_url = " http://localhost/data "
31+ tls_insecure = Whether to verify the server TLS certificates.
3532{{< /highlight >}}
3633{{% /dir %}}
3734
38- {{% dir name="expose_data_server " type="bool " default=false %}}
39- Whether to expose data server. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L68 )
35+ {{% dir name="tls_root_ca_cert " type="string " default="The root CA certificate used to validate the server's TLS certificate." %}}
36+ [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L80 )
4037{{< highlight toml >}}
4138[ grpc.services.storageprovider]
42- expose_data_server = false
39+ tls_root_ca_cert = "The root CA certificate used to validate the server's TLS certificate."
4340{{< /highlight >}}
4441{{% /dir %}}
4542
46- {{% dir name="available_checksums " type="map [ string ] uint32 " default=nil %}}
47- List of available checksums. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L69 )
43+ {{% dir name="nats_enable_tls " type="bool " default=events tls switch %}}
44+ [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L81 )
4845{{< highlight toml >}}
4946[ grpc.services.storageprovider]
50- available_checksums = nil
47+ nats_enable_tls = events tls switch
5148{{< /highlight >}}
5249{{% /dir %}}
5350
54- {{% dir name="custom_mimetypes_json " type="string" default="nil " %}}
55- An optional mapping file with the list of supported custom file extensions and corresponding mime types. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L70 )
51+ {{% dir name="nats_username " type="string" default="event stream username " %}}
52+ [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L82 )
5653{{< highlight toml >}}
5754[ grpc.services.storageprovider]
58- custom_mimetypes_json = "nil "
55+ nats_username = "event stream username "
5956{{< /highlight >}}
6057{{% /dir %}}
6158
62- {{% dir name="upload_expiration " type="int64 " default=0 %}}
63- Duration for how long uploads will be valid. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L72 )
59+ {{% dir name="nats_password " type="string " default="event stream password" %}}
60+ [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L83 )
6461{{< highlight toml >}}
6562[ grpc.services.storageprovider]
66- upload_expiration = 0
63+ nats_password = "event stream password"
6764{{< /highlight >}}
6865{{% /dir %}}
6966
70- {{% dir name="events" type="eventconfig" default=0 %}}
71- Event stream configuration [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L73 )
67+ # _ struct: config_
68+
69+ {{% dir name="driver" type="string" default="localhome" %}}
70+ The storage driver to be used. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L65 )
7271{{< highlight toml >}}
7372[ grpc.services.storageprovider]
74- events = 0
73+ driver = "localhome"
7574{{< /highlight >}}
7675{{% /dir %}}
7776
78- # _ struct: eventconfig_
79-
80- {{% dir name="nats_address" type="string" default="address of the nats server" %}}
81- [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L77 )
77+ {{% dir name="drivers" type="map[ string] map[ string] interface{}" default="localhome" %}}
78+ [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L66 )
8279{{< highlight toml >}}
83- [ grpc.services.storageprovider]
84- nats_address = "address of the nats server"
80+ [ grpc.services.storageprovider.drivers.localhome]
81+ root = "/var/tmp/reva/"
82+ share_folder = "/MyShares"
83+ user_layout = "{{.Username}}"
84+
8585{{< /highlight >}}
8686{{% /dir %}}
8787
88- {{% dir name="nats_clusterid " type="string" default="clusterid of the nats server " %}}
89- [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L78 )
88+ {{% dir name="data_server_url " type="string" default="http://localhost/data " %}}
89+ The URL for the data server. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L67 )
9090{{< highlight toml >}}
9191[ grpc.services.storageprovider]
92- nats_clusterid = "clusterid of the nats server "
92+ data_server_url = "http://localhost/data "
9393{{< /highlight >}}
9494{{% /dir %}}
9595
96- {{% dir name="tls_insecure " type="bool" default=Whether to verify the server TLS certificates. %}}
97- [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L79 )
96+ {{% dir name="expose_data_server " type="bool" default=false %}}
97+ Whether to expose data server. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L68 )
9898{{< highlight toml >}}
9999[ grpc.services.storageprovider]
100- tls_insecure = Whether to verify the server TLS certificates.
100+ expose_data_server = false
101101{{< /highlight >}}
102102{{% /dir %}}
103103
104- {{% dir name="tls_root_ca_cert " type="string" default="The root CA certificate used to validate the server's TLS certificate." %}}
105- [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L80 )
104+ {{% dir name="available_checksums " type="map [ string] uint32 " default=nil %}}
105+ List of available checksums. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L69 )
106106{{< highlight toml >}}
107107[ grpc.services.storageprovider]
108- tls_root_ca_cert = "The root CA certificate used to validate the server's TLS certificate."
108+ available_checksums = nil
109109{{< /highlight >}}
110110{{% /dir %}}
111111
112- {{% dir name="nats_enable_tls " type="bool " default=events tls switch %}}
113- [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L81 )
112+ {{% dir name="custom_mimetypes_json " type="string " default="nil" %}}
113+ An optional mapping file with the list of supported custom file extensions and corresponding mime types. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L70 )
114114{{< highlight toml >}}
115115[ grpc.services.storageprovider]
116- nats_enable_tls = events tls switch
116+ custom_mimetypes_json = "nil"
117117{{< /highlight >}}
118118{{% /dir %}}
119119
120- {{% dir name="nats_username " type="string " default="event stream username" %}}
121- [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L82 )
120+ {{% dir name="upload_expiration " type="int64 " default=0 %}}
121+ Duration for how long uploads will be valid. [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L72 )
122122{{< highlight toml >}}
123123[ grpc.services.storageprovider]
124- nats_username = "event stream username"
124+ upload_expiration = 0
125125{{< /highlight >}}
126126{{% /dir %}}
127127
128- {{% dir name="nats_password " type="string " default="event stream password" %}}
129- [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L83 )
128+ {{% dir name="events " type="eventconfig " default=0 %}}
129+ Event stream configuration [[ Ref]] ( https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L73 )
130130{{< highlight toml >}}
131131[ grpc.services.storageprovider]
132- nats_password = "event stream password"
132+ events = 0
133133{{< /highlight >}}
134134{{% /dir %}}
135135
0 commit comments