go-blog/go-blog.conf

124 lines
3.3 KiB
Plaintext
Raw Permalink Normal View History

2018-08-10 19:50:09 +02:00
# DO NOT EDIT THIS FILE
2018-07-14 18:02:33 +02:00
# Instead copy this file to the custom folder and make changes there
2018-12-13 15:07:06 +01:00
# the environment
# possible values: prod|dev
# dev is used for running server during development - logs are written to stderr
# prod is used for running server in a production environment - logs are written to the
# specified 'log_file' location
2018-04-27 14:38:12 +02:00
environment = prod
2018-07-12 11:50:43 +02:00
2018-12-13 15:07:06 +01:00
# on which address should the server listen on
2018-04-27 14:38:12 +02:00
server_address = localhost
2018-07-12 11:50:43 +02:00
2018-12-13 15:07:06 +01:00
# the port the server should listen on
2018-04-27 14:38:12 +02:00
server_port = 4730
2018-12-13 15:07:06 +01:00
# sqlite config
sqlite_file =
# if you use a reverse proxy which serves the content encrypted you can disable TLS here
2018-04-27 14:38:12 +02:00
use_tls = true
2018-07-12 11:50:43 +02:00
# specify the path to the required certificate and key file
2018-04-27 14:38:12 +02:00
ssl_certificate_file =
ssl_certificate_key_file =
2018-12-13 15:07:06 +01:00
########### APPLICATION SETTINGS ###########
2018-07-14 18:02:33 +02:00
# the title displayed in the header
2018-09-05 12:16:37 +02:00
application_title = example.com
2018-07-14 18:02:33 +02:00
# currently just used for the primary language of your articles
# used in html lang attribute
# Allowed values see https://www.w3.org/International/questions/qa-html-language-declarations.en#langvalues
2018-09-05 12:16:37 +02:00
application_language = en
2018-07-14 18:02:33 +02:00
# short explanation of the site used in the meta tag "description"
# In articles the teaser will be in the description tag
# Maximum length: 320
2018-09-05 12:16:37 +02:00
application_description =
2018-07-14 18:02:33 +02:00
# the domain for use in mails and rss feeds
# form: https://sub.domain.tld
2020-06-12 12:50:03 +02:00
application_domain = https://localhost
2018-09-05 12:16:37 +02:00
2018-12-13 14:32:52 +01:00
# file to a custom favicon
application_favicon =
# file to a custom robots.txt
application_robots_txt =
# file to a custom css
application_custom_css =
# overwrite the default css, so it will not be included
application_overwrite_default_css = false
2018-12-13 15:07:06 +01:00
########### LOG SETTINGS ###########
# log configuration
2019-03-14 12:26:07 +01:00
# log levels: debug|info|warn|error|fatal|panic
log_level = Error
log_file = /var/log/go-blog/error.log
2021-09-08 22:26:41 +02:00
log_access = true
2018-12-13 15:07:06 +01:00
log_access_file = /var/log/go-blog/access.log
########### BLOG SETTINGS ###########
2018-09-05 12:16:37 +02:00
# the maximun articles which are shown on one page
blog_articles_per_page = 20
# the number of items in the rss feed
blog_rss_feed_items = 10
2018-07-14 18:02:33 +02:00
2018-12-13 15:07:06 +01:00
########### MAIL SETTINGS ###########
# mail server settings
2018-10-31 15:52:11 +01:00
mail_smtp_host =
2018-04-27 14:38:12 +02:00
mail_smtp_port =
mail_smtp_user =
mail_smtp_password =
mail_sender_address =
mail_subject_prefix =
2018-12-13 15:07:06 +01:00
########### USER SETTINGS ###########
2018-07-12 11:50:43 +02:00
# the minimum password length
2018-04-27 14:38:12 +02:00
user_min_password_length = 12
2018-07-12 11:50:43 +02:00
2018-04-27 14:38:12 +02:00
# the path with name to an optional user interceptor
2018-11-02 13:49:53 +01:00
user_interceptor_plugin =
2018-07-12 11:50:43 +02:00
2018-04-27 14:38:12 +02:00
# defines which field should be used during login
2018-07-14 18:02:33 +02:00
# Possible values: username|mail
# Fallback: username
2018-04-27 14:38:12 +02:00
user_login_method = username
2018-12-13 15:07:06 +01:00
########### FILE SETTINGS ###########
# the location in which files should be saved
2018-04-27 14:38:12 +02:00
file_location = /srv/go-blog/files
2018-06-22 23:19:03 +02:00
file_max_upload_size = 10MB
2018-12-12 17:52:32 +01:00
file_allowed_extensions = jpg, jpeg, png, gif, zip, gz, tar, txt, gpg, asc, pdf
2018-04-27 14:38:12 +02:00
2018-12-13 15:07:06 +01:00
########### SESSION SETTINGS ###########
# how long should the session live when idle
2018-04-27 14:38:12 +02:00
session_time_to_live = 15m
# check every 5 minutes for timed out sessions
session_garbage_collection = 5m
session_cookie_name = go-blog-session
session_cookie_secure = true
session_cookie_path = /admin
2018-12-13 15:07:06 +01:00
########### CSRF TOKEN SETTINGS ###########
2018-05-28 21:23:30 +02:00
# csrf cookie options
2018-04-27 14:38:12 +02:00
csrf_cookie_name = csrfToken
csrf_cookie_secure = true
csrf_cookie_path = /admin
2018-05-28 21:23:30 +02:00
# a random key will be generated upon first start; see .csrftoken file
# you can provide your own random key (should be 32 chars long)
2020-06-12 12:50:03 +02:00
csrf_random_key =