development.ini
204 lines
| 5.6 KiB
| text/x-ini
|
IniLexer
/ configs / development.ini
r1119 | # | |||
r483 | ||||
r806 | ; ################################# | |||
; RHODECODE VCSSERVER CONFIGURATION | ||||
; ################################# | ||||
r483 | ||||
[server:main] | ||||
r806 | ; COMMON HOST/IP CONFIG | |||
r483 | host = 0.0.0.0 | |||
r1143 | port = 10010 | |||
r483 | ||||
r806 | ; ################################################## | |||
; WAITRESS WSGI SERVER - Recommended for Development | ||||
; ################################################## | ||||
r801 | ||||
r806 | ; use server type | |||
r483 | use = egg:waitress#main | |||
r806 | ||||
; number of worker threads | ||||
r801 | threads = 5 | |||
r806 | ||||
; MAX BODY SIZE 100GB | ||||
r801 | max_request_body_size = 107374182400 | |||
r806 | ||||
; Use poll instead of select, fixes file descriptors limits problems. | ||||
; May not work on old windows systems. | ||||
r801 | asyncore_use_poll = true | |||
r806 | ; ########################### | |||
; GUNICORN APPLICATION SERVER | ||||
; ########################### | ||||
r801 | ||||
r1021 | ; run with gunicorn --paste rhodecode.ini | |||
r806 | ||||
; Module to use, this setting shouldn't be changed | ||||
r801 | #use = egg:gunicorn#main | |||
r806 | ||||
r483 | [app:main] | |||
r806 | ; The %(here)s variable will be replaced with the absolute path of parent directory | |||
; of this file | ||||
r1021 | ; Each option in the app:main can be override by an environmental variable | |||
; | ||||
;To override an option: | ||||
; | ||||
;RC_<KeyName> | ||||
;Everything should be uppercase, . and - should be replaced by _. | ||||
;For example, if you have these configuration settings: | ||||
;rc_cache.repo_object.backend = foo | ||||
;can be overridden by | ||||
;export RC_CACHE_REPO_OBJECT_BACKEND=foo | ||||
r483 | use = egg:rhodecode-vcsserver | |||
r806 | ||||
; ############# | ||||
; DEBUG OPTIONS | ||||
; ############# | ||||
# During development the we want to have the debug toolbar enabled | ||||
r483 | pyramid.includes = | |||
r806 | pyramid_debugtoolbar | |||
r483 | ||||
r806 | debugtoolbar.hosts = 0.0.0.0/0 | |||
debugtoolbar.exclude_prefixes = | ||||
/css | ||||
/fonts | ||||
/images | ||||
/js | ||||
; ################# | ||||
; END DEBUG OPTIONS | ||||
; ################# | ||||
; Pyramid default locales, we need this to be set | ||||
r1021 | #pyramid.default_locale_name = en | |||
r806 | ||||
; default locale used by VCS systems | ||||
r1021 | #locale = en_US.UTF-8 | |||
r483 | ||||
r1215 | ; path to binaries (hg,git,svn) for vcsserver, it should be set by the installer | |||
r1021 | ; at installation time, e.g /home/user/.rccontrol/vcsserver-1/profile/bin | |||
r1215 | ; or /usr/local/bin/rhodecode_bin/vcs_bin | |||
core.binary_dir = | ||||
r483 | ||||
r806 | ; Custom exception store path, defaults to TMPDIR | |||
; This is used to store exception from RhodeCode in shared directory | ||||
r546 | #exception_tracker.store_path = | |||
r519 | ||||
r806 | ; ############# | |||
; DOGPILE CACHE | ||||
; ############# | ||||
; Default cache dir for caches. Putting this into a ramdisk can boost performance. | ||||
; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space | ||||
r1021 | #cache_dir = %(here)s/data | |||
r519 | ||||
r806 | ; *************************************** | |||
; `repo_object` cache, default file based | ||||
; *************************************** | ||||
; `repo_object` cache settings for vcs methods for repositories | ||||
r1021 | #rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace | |||
r806 | ||||
; cache auto-expires after N seconds | ||||
; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | ||||
r1021 | #rc_cache.repo_object.expiration_time = 2592000 | |||
r776 | ||||
r809 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set | |||
r1021 | #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache_repo_object.db | |||
r776 | ||||
r809 | ; *********************************************************** | |||
r806 | ; `repo_object` cache with redis backend | |||
r809 | ; recommended for larger instance, and for better performance | |||
; *********************************************************** | ||||
r806 | ||||
; `repo_object` cache settings for vcs methods for repositories | ||||
#rc_cache.repo_object.backend = dogpile.cache.rc.redis_msgpack | ||||
; cache auto-expires after N seconds | ||||
; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | ||||
#rc_cache.repo_object.expiration_time = 2592000 | ||||
; redis_expiration_time needs to be greater then expiration_time | ||||
#rc_cache.repo_object.arguments.redis_expiration_time = 3592000 | ||||
#rc_cache.repo_object.arguments.host = localhost | ||||
#rc_cache.repo_object.arguments.port = 6379 | ||||
#rc_cache.repo_object.arguments.db = 5 | ||||
#rc_cache.repo_object.arguments.socket_timeout = 30 | ||||
; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends | ||||
#rc_cache.repo_object.arguments.distributed_lock = true | ||||
r483 | ||||
r950 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen | |||
#rc_cache.repo_object.arguments.lock_auto_renewal = true | ||||
r1006 | ; Statsd client config, this is used to send metrics to statsd | |||
; We recommend setting statsd_exported and scrape them using Promethues | ||||
r920 | #statsd.enabled = false | |||
#statsd.statsd_host = 0.0.0.0 | ||||
#statsd.statsd_port = 8125 | ||||
#statsd.statsd_prefix = | ||||
#statsd.statsd_ipv6 = false | ||||
r483 | ||||
r1021 | ; configure logging automatically at server startup set to false | |||
; to use the below custom logging config. | ||||
r1023 | ; RC_LOGGING_FORMATTER | |||
; RC_LOGGING_LEVEL | ||||
; env variables can control the settings for logging in case of autoconfigure | ||||
r1021 | #logging.autoconfigure = true | |||
; specify your own custom logging config file to configure logging | ||||
#logging.logging_conf_file = /path/to/custom_logging.ini | ||||
r806 | ; ##################### | |||
; LOGGING CONFIGURATION | ||||
; ##################### | ||||
r1023 | ||||
r1024 | [loggers] | |||
keys = root, vcsserver | ||||
r483 | ||||
r1024 | [handlers] | |||
keys = console | ||||
r483 | ||||
r1024 | [formatters] | |||
keys = generic, json | ||||
r483 | ||||
r806 | ; ####### | |||
; LOGGERS | ||||
; ####### | ||||
r1024 | [logger_root] | |||
level = NOTSET | ||||
handlers = console | ||||
r483 | ||||
r1024 | [logger_vcsserver] | |||
level = DEBUG | ||||
handlers = | ||||
qualname = vcsserver | ||||
propagate = 1 | ||||
r483 | ||||
r806 | ; ######## | |||
; HANDLERS | ||||
; ######## | ||||
r483 | ||||
r1024 | [handler_console] | |||
class = StreamHandler | ||||
args = (sys.stderr, ) | ||||
level = DEBUG | ||||
r1026 | ; To enable JSON formatted logs replace 'generic' with 'json' | |||
; This allows sending properly formatted logs to grafana loki or elasticsearch | ||||
r1024 | formatter = generic | |||
r483 | ||||
r806 | ; ########## | |||
; FORMATTERS | ||||
; ########## | ||||
r483 | ||||
r1024 | [formatter_generic] | |||
format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s | ||||
datefmt = %Y-%m-%d %H:%M:%S | ||||
r1019 | ||||
r1024 | [formatter_json] | |||
format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s | ||||
class = vcsserver.lib._vendor.jsonlogger.JsonFormatter | ||||