##// END OF EJS Templates
config: updated changes to config files
super-admin -
r4827:fa70deee default
parent child Browse files
Show More
@@ -143,8 +143,16 b' prefix = /'
143 143 [app:main]
144 144 ; The %(here)s variable will be replaced with the absolute path of parent directory
145 145 ; of this file
146 ; In addition ENVIRONMENT variables usage is possible, e.g
147 ; sqlalchemy.db1.url = {ENV_RC_DB_URL}
146 ; Each option in the app:main can be override by an environmental variable
147 ;
148 ;To override an option:
149 ;
150 ;RC_<KeyName>
151 ;Everything should be uppercase, . and - should be replaced by _.
152 ;For example, if you have these configuration settings:
153 ;rc_cache.repo_object.backend = foo
154 ;can be overridden by
155 ;export RC_CACHE_REPO_OBJECT_BACKEND=foo
148 156
149 157 use = egg:rhodecode-enterprise-ce
150 158
@@ -379,6 +387,9 b' file_store.storage_path = %(here)s/data/'
379 387
380 388 use_celery = false
381 389
390 ; path to store schedule database
391 #celerybeat-schedule.path =
392
382 393 ; connection url to the message broker (default redis)
383 394 celery.broker_url = redis://localhost:6379/8
384 395
@@ -624,6 +635,9 b' vcs.connection_timeout = 3600'
624 635 ; Legacy available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible
625 636 #vcs.svn.compatible_version = 1.8
626 637
638 ; Cache flag to cache vcsserver remote calls locally
639 ; It uses cache_region `cache_repo`
640 vcs.methods.cache = true
627 641
628 642 ; ####################################################
629 643 ; Subversion proxy support (mod_dav_svn)
@@ -706,55 +720,55 b' ssh.enable_ui_key_generator = true'
706 720 ; http://appenlight.rhodecode.com for details how to obtain an account
707 721
708 722 ; Appenlight integration enabled
709 appenlight = false
723 #appenlight = false
710 724
711 appenlight.server_url = https://api.appenlight.com
712 appenlight.api_key = YOUR_API_KEY
725 #appenlight.server_url = https://api.appenlight.com
726 #appenlight.api_key = YOUR_API_KEY
713 727 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
714 728
715 729 ; used for JS client
716 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
730 #appenlight.api_public_key = YOUR_API_PUBLIC_KEY
717 731
718 732 ; TWEAK AMOUNT OF INFO SENT HERE
719 733
720 734 ; enables 404 error logging (default False)
721 appenlight.report_404 = false
735 #appenlight.report_404 = false
722 736
723 737 ; time in seconds after request is considered being slow (default 1)
724 appenlight.slow_request_time = 1
738 #appenlight.slow_request_time = 1
725 739
726 740 ; record slow requests in application
727 741 ; (needs to be enabled for slow datastore recording and time tracking)
728 appenlight.slow_requests = true
742 #appenlight.slow_requests = true
729 743
730 744 ; enable hooking to application loggers
731 appenlight.logging = true
745 #appenlight.logging = true
732 746
733 747 ; minimum log level for log capture
734 appenlight.logging.level = WARNING
748 #ppenlight.logging.level = WARNING
735 749
736 750 ; send logs only from erroneous/slow requests
737 751 ; (saves API quota for intensive logging)
738 appenlight.logging_on_error = false
752 #appenlight.logging_on_error = false
739 753
740 754 ; list of additional keywords that should be grabbed from environ object
741 755 ; can be string with comma separated list of words in lowercase
742 756 ; (by default client will always send following info:
743 757 ; 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
744 758 ; start with HTTP* this list be extended with additional keywords here
745 appenlight.environ_keys_whitelist =
759 #appenlight.environ_keys_whitelist =
746 760
747 761 ; list of keywords that should be blanked from request object
748 762 ; can be string with comma separated list of words in lowercase
749 763 ; (by default client will always blank keys that contain following words
750 764 ; 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
751 765 ; this list be extended with additional keywords set here
752 appenlight.request_keys_blacklist =
766 #appenlight.request_keys_blacklist =
753 767
754 768 ; list of namespaces that should be ignores when gathering log entries
755 769 ; can be string with comma separated list of namespaces
756 770 ; (by default the client ignores own entries: appenlight_client.client)
757 appenlight.log_namespace_blacklist =
771 #appenlight.log_namespace_blacklist =
758 772
759 773 ; Statsd client config, this is used to send metrics to statsd
760 774 ; We recommend setting statsd_exported and scrape them using Promethues
@@ -764,6 +778,16 b' appenlight.log_namespace_blacklist ='
764 778 #statsd.statsd_prefix =
765 779 #statsd.statsd_ipv6 = false
766 780
781 ; configure logging automatically at server startup set to false
782 ; to use the below custom logging config.
783 ; RC_LOGGING_FORMATTER
784 ; RC_LOGGING_LEVEL
785 ; env variables can control the settings for logging in case of autoconfigure
786
787 #logging.autoconfigure = true
788
789 ; specify your own custom logging config file to configure logging
790 #logging.logging_conf_file = /path/to/custom_logging.ini
767 791
768 792 ; Dummy marker to add new entries after.
769 793 ; Add any custom entries below. Please don't remove this marker.
@@ -773,6 +797,7 b' custom.conf = 1'
773 797 ; #####################
774 798 ; LOGGING CONFIGURATION
775 799 ; #####################
800
776 801 [loggers]
777 802 keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper
778 803
@@ -780,7 +805,7 b' keys = root, sqlalchemy, beaker, celery,'
780 805 keys = console, console_sql
781 806
782 807 [formatters]
783 keys = generic, color_formatter, color_formatter_sql
808 keys = generic, json, color_formatter, color_formatter_sql
784 809
785 810 ; #######
786 811 ; LOGGERS
@@ -861,5 +886,5 b' format = %(asctime)s.%(msecs)03d [%(proc'
861 886 datefmt = %Y-%m-%d %H:%M:%S
862 887
863 888 [formatter_json]
864 format = %(message)s
865 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter No newline at end of file
889 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
890 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter
@@ -29,6 +29,8 b" accesslog = '-'"
29 29 worker_tmp_dir = None
30 30 tmp_upload_dir = None
31 31
32 #reuse_port = True
33
32 34 # Custom log format
33 35 #access_log_format = (
34 36 # '%(t)s %(p)s INFO [GNCRN] %(h)-15s rqt:%(L)s %(s)s %(b)-6s "%(m)s:%(U)s %(q)s" usr:%(u)s "%(f)s" "%(a)s"')
@@ -36,7 +36,7 b' port = 5000'
36 36 ; GUNICORN APPLICATION SERVER
37 37 ; ###########################
38 38
39 ; run with gunicorn --log-config rhodecode.ini --paste rhodecode.ini
39 ; run with gunicorn --paste rhodecode.ini
40 40
41 41 ; Module to use, this setting shouldn't be changed
42 42 use = egg:gunicorn#main
@@ -124,6 +124,18 b' use = egg:PasteDeploy#prefix'
124 124 prefix = /
125 125
126 126 [app:main]
127 ; The %(here)s variable will be replaced with the absolute path of parent directory
128 ; of this file
129 ; Each option in the app:main can be override by an environmental variable
130 ;
131 ;To override an option:
132 ;
133 ;RC_<KeyName>
134 ;Everything should be uppercase, . and - should be replaced by _.
135 ;For example, if you have these configuration settings:
136 ;rc_cache.repo_object.backend = foo
137 ;can be overridden by
138 ;export RC_CACHE_REPO_OBJECT_BACKEND=foo
127 139
128 140 use = egg:rhodecode-enterprise-ce
129 141
@@ -717,9 +729,12 b' ssh.enable_ui_key_generator = true'
717 729 #statsd.statsd_prefix =
718 730 #statsd.statsd_ipv6 = false
719 731
720
721 732 ; configure logging automatically at server startup set to false
722 733 ; to use the below custom logging config.
734 ; RC_LOGGING_FORMATTER
735 ; RC_LOGGING_LEVEL
736 ; env variables can control the settings for logging in case of autoconfigure
737
723 738 #logging.autoconfigure = true
724 739
725 740 ; specify your own custom logging config file to configure logging
@@ -733,6 +748,7 b' custom.conf = 1'
733 748 ; #####################
734 749 ; LOGGING CONFIGURATION
735 750 ; #####################
751
736 752 [loggers]
737 753 keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper
738 754
@@ -740,7 +756,7 b' keys = root, sqlalchemy, beaker, celery,'
740 756 keys = console, console_sql
741 757
742 758 [formatters]
743 keys = generic, color_formatter, color_formatter_sql
759 keys = generic, json, color_formatter, color_formatter_sql
744 760
745 761 ; #######
746 762 ; LOGGERS
@@ -821,5 +837,5 b' format = %(asctime)s.%(msecs)03d [%(proc'
821 837 datefmt = %Y-%m-%d %H:%M:%S
822 838
823 839 [formatter_json]
824 format = %(message)s
825 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter No newline at end of file
840 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
841 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter
General Comments 0
You need to be logged in to leave comments. Login now