-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathalexandrie.toml
81 lines (67 loc) · 1.93 KB
/
alexandrie.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[general]
bind_address = "127.0.0.1:3000"
max_crate_size = "50 MB"
[frontend]
enabled = true
title = "Alexandrie"
description = "An alternative crate registry for Cargo, the Rust package manager."
# favicon = ""
links = [
{ name = "Github repository", href = "https://github.com/Hirevo/alexandrie" },
{ name = "User documentation", href = "https://hirevo.github.io/alexandrie" },
]
login_required = false
[frontend.sessions]
cookie_name = "alexandrie.sid"
secret = "YOU_REALLY_SHOULD_CHANGE_THIS_BEFORE_DEPLOYING_THIS_TO_PRODUCTION"
[frontend.assets]
path = "assets"
[frontend.templates]
path = "templates"
[frontend.auth]
origin = "http://localhost:3000"
[frontend.auth.local]
enabled = true
allow_registration = true
[frontend.auth.github]
enabled = false
client_id = "GITHUB_OAUTH_CLIENT_ID"
client_secret = "GITHUB_OAUTH_CLIENT_SECRET"
# Omit `allowed_organizations` to not require any organization membership.
allowed_organizations = [
# Using this organization does not requires any specific team membership.
{ name = "ORG_NAME_1" },
# But using this one does requires membership in one of specified teams.
{ name = "ORG_NAME_2", allowed_teams = ["TEAM_NAME"] },
]
allow_registration = true
[frontend.auth.gitlab]
enabled = false
origin = "https://gitlab.com"
client_id = "GITLAB_OAUTH_CLIENT_ID"
client_secret = "GITLAB_OAUTH_CLIENT_SECRET"
# Omit `allowed_groups` to not require any organization membership.
allowed_groups = [
"GROUP_1",
"GROUP_2",
]
allow_registration = true
[database]
# url = "mysql://root:[email protected]:3306/alexandrie"
# url = "postgresql://root:[email protected]:5432/alexandrie"
url = "alexandrie.db"
[index]
type = "command-line"
path = "crate-index"
[storage]
type = "disk"
path = "crate-storage"
[syntect.syntaxes]
type = "dump"
path = "syntect/dumps/syntaxes.dump"
[syntect.themes]
type = "dump"
path = "syntect/dumps/themes.dump"
theme_name = "frontier-contrast"
[search]
path = "/tmp/tantivy"