-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.toml
87 lines (67 loc) · 2.45 KB
/
config.sample.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
82
83
84
85
86
87
[app]
# Network address for the server to listen on.
address = ":9000"
# Admin dashboard and API credentials.
admin_username = "dictpress"
admin_password = "dictpress_admin_password"
# The website URL to be used on the frontend pages.
# Example: yourdictionary.site.com
root_url = "http://localhost:9000"
# (Optional) URLs to one or more JS/CSS files (ending in .js or .css) to load on the admin UI.
# This may be useful to integrate multi-lingual typing capabilities in admin UI boxes when dealing with different languages.
admin_assets = []
# Enable rendering arbitrary pages from (site_dir/pages/*.html).
# For instance, "about" for site_dir/pages/about.html will be
# rendered on site.com/pages/about where the template is defined
# with the name {{ define "page-about" }}. All template name definitions
# should be "page-*".
#
# This is relevant when starting the app with a site theme (--site param).
enable_pages = true
# Enable API endpoints for accepting public user submissions and corrections.
# All user submissions are queued for the admin to review and only get published
# on approval.
enable_submissions = false
# Available dictionary pairs. [$FromLangName, $ToLangName] pairs from the languages defined below in [lang.*] keys.
dicts = [["english", "italian"], ["italian", "english"]]
[results]
# Default number of entries to return per page when paginated.
default_per_page = 10
# The absolute maximum number of results to return per query in case the
# per_page value above if overwritten from the frontend.
max_per_page = 20
# num_page_nums is the of number of page numbers to generate when
# generating page numbers to be printed (eg: 1, 2 ... 10 ..).
# Only relevant for HTML sites loaded with --site.
num_page_nums = 10
[glossary]
enabled = true
default_per_page = 100
max_per_page = 100
num_page_nums = 10
[db]
host = "localhost"
port = 5432
db = "dbname"
user = "username"
password = "password"
[lang.english]
name = "English"
# The name of the tokenizer used to tokenize search queries.
# This can be either a Postgres supported tsvector regconfig (eg: english|german|finnish etc.)
# or a built-in tokenizer (eg: indicphone)
# tokenizer_type = postgres | custom
tokenizer = "english"
tokenizer_type = "postgres"
[lang.english.types]
noun = "Noun"
adj = "Adjective"
verb = "Verb"
adv = "Adverb"
conj = "Conjugation"
[lang.italian]
tokenizer = "italian"
tokenizer_type = "postgres"
[lang.italian.types]
sost = "Sostantivo" # Noun
verb = "Verbo" # Verb