-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.ini.example
94 lines (90 loc) · 2.34 KB
/
config.ini.example
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
[Main]
; Port to listen on
Listen = tcp://:9999
; Host address - used for downloading
Host = 127.0.0.1:9999
; login for the admin user
AdminUser = admin_username
AdminPass = admin_password
; path to ssl certificate
;Cert = somekey.crt
; path to ssl key
;Key = somekey.key
Scheme = http
; Should the contents be public?
Public = true
; Database Configuration
; path to database file to use.
; Not used when both AWS storage and LDAP are enabled
MetaDB = lfs.db
; Content Store Configuration
; Where to store the content on disk. Not used when AWS storage is enabled
ContentPath = lfs_content
;ContentStore options are [aws,filesystem]
ContentStore = filesystem
; BackingStore options are [cassandra, bolt]
; bolt requires no external services
BackingStore = bolt
; NumProcs defaults to the number of processors available to the system
; based on what runtime.NumCPU() returns
; NumProcs = <some number>
; Cassandra section is optional - but suggested for large deployments
[Cassandra]
Enabled = false
; Optional - for storing meta content in Cassandra
; comma separated
Hosts = localhost:9042, anotherhost:9042
; Optional - used to select cassandra keyspace
; Defaults to lfs_server_go_GO_ENV, if GO_ENV is not set,
; Keyspace = lfs_server_go
; Optional default 3
ProtoVersion = 2
;Username =
;Password =
[MySQL]
Host = "localhost"
Database = "lfs_server_go"
Username = "root"
Password = "password"
Enabled = true
; LDAP section is optional - but suggested for large deployments
[Ldap]
Enabled = false
; LDAP configuration - Optional
;Server = ldap://localhost:1389
; true/false
;Base = ou=people,o=mycompany
;UserObjectClass = person
;UserCn = uid
; AWS is optional, but useful
[Aws]
Enabled = false
AccessKeyId = your-access-key-id
SecretAccessKey = your-secret-access-key
; AWS Configuration - Optional, unless you're using aws for the content store
;AwsAccessKeyId = your-access-key
;AwsSecretAccessKey = your-secret-key
;Regions:
;cn-north-1
;sa-east-1
;ap-northeast-1
;ap-northeast-2
;ap-southeast-1
;eu-central-1
;eu-west-1
;us-west-2
;us-west-1
;us-east-1
;us-gov-west-1
Region = us-east-1
;This should be a pre-existing bucket
;We try to create it but the response is not always fast enough
BucketName = lfs-server-go-objects
;Acl options:
;bucket-owner-full-control
;bucket-owner-read
;authenticated-read
;public-read-write
;public-read
;private
BucketAcl = bucket-owner-full-control