Skip to content

Commit

Permalink
Update sample config.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Dec 11, 2021
1 parent d0a01b4 commit 813056a
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions config.sample.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[app]
# Network address for the server to listen on.
address = ":8080"

# The website URL to be used on the frontend pages.
# Example: yourdictionary.site.com
root_url = "http://localhost:9000"

# 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 dictmaker with a site theme (--site param).
enable_pages = false


[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]
default_per_page = 100
max_per_page = 100
num_page_nums = 10


[db]
host = "localhost"
port = 5432
db = "mydict"
user = ""
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]
tokenzier = "italian"
tokenizer_type = "postgres"

[lang.italian.types]
sost = "Sostantivo" # Noun
verb = "Verbo" # Verb

0 comments on commit 813056a

Please sign in to comment.