##// 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 [app:main]
143 [app:main]
144 ; The %(here)s variable will be replaced with the absolute path of parent directory
144 ; The %(here)s variable will be replaced with the absolute path of parent directory
145 ; of this file
145 ; of this file
146 ; In addition ENVIRONMENT variables usage is possible, e.g
146 ; Each option in the app:main can be override by an environmental variable
147 ; sqlalchemy.db1.url = {ENV_RC_DB_URL}
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 use = egg:rhodecode-enterprise-ce
157 use = egg:rhodecode-enterprise-ce
150
158
@@ -379,6 +387,9 b' file_store.storage_path = %(here)s/data/'
379
387
380 use_celery = false
388 use_celery = false
381
389
390 ; path to store schedule database
391 #celerybeat-schedule.path =
392
382 ; connection url to the message broker (default redis)
393 ; connection url to the message broker (default redis)
383 celery.broker_url = redis://localhost:6379/8
394 celery.broker_url = redis://localhost:6379/8
384
395
@@ -624,6 +635,9 b' vcs.connection_timeout = 3600'
624 ; Legacy available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible
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 #vcs.svn.compatible_version = 1.8
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 ; Subversion proxy support (mod_dav_svn)
643 ; Subversion proxy support (mod_dav_svn)
@@ -706,55 +720,55 b' ssh.enable_ui_key_generator = true'
706 ; http://appenlight.rhodecode.com for details how to obtain an account
720 ; http://appenlight.rhodecode.com for details how to obtain an account
707
721
708 ; Appenlight integration enabled
722 ; Appenlight integration enabled
709 appenlight = false
723 #appenlight = false
710
724
711 appenlight.server_url = https://api.appenlight.com
725 #appenlight.server_url = https://api.appenlight.com
712 appenlight.api_key = YOUR_API_KEY
726 #appenlight.api_key = YOUR_API_KEY
713 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
727 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
714
728
715 ; used for JS client
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 ; TWEAK AMOUNT OF INFO SENT HERE
732 ; TWEAK AMOUNT OF INFO SENT HERE
719
733
720 ; enables 404 error logging (default False)
734 ; enables 404 error logging (default False)
721 appenlight.report_404 = false
735 #appenlight.report_404 = false
722
736
723 ; time in seconds after request is considered being slow (default 1)
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 ; record slow requests in application
740 ; record slow requests in application
727 ; (needs to be enabled for slow datastore recording and time tracking)
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 ; enable hooking to application loggers
744 ; enable hooking to application loggers
731 appenlight.logging = true
745 #appenlight.logging = true
732
746
733 ; minimum log level for log capture
747 ; minimum log level for log capture
734 appenlight.logging.level = WARNING
748 #ppenlight.logging.level = WARNING
735
749
736 ; send logs only from erroneous/slow requests
750 ; send logs only from erroneous/slow requests
737 ; (saves API quota for intensive logging)
751 ; (saves API quota for intensive logging)
738 appenlight.logging_on_error = false
752 #appenlight.logging_on_error = false
739
753
740 ; list of additional keywords that should be grabbed from environ object
754 ; list of additional keywords that should be grabbed from environ object
741 ; can be string with comma separated list of words in lowercase
755 ; can be string with comma separated list of words in lowercase
742 ; (by default client will always send following info:
756 ; (by default client will always send following info:
743 ; 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
757 ; 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
744 ; start with HTTP* this list be extended with additional keywords here
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 ; list of keywords that should be blanked from request object
761 ; list of keywords that should be blanked from request object
748 ; can be string with comma separated list of words in lowercase
762 ; can be string with comma separated list of words in lowercase
749 ; (by default client will always blank keys that contain following words
763 ; (by default client will always blank keys that contain following words
750 ; 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
764 ; 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
751 ; this list be extended with additional keywords set here
765 ; this list be extended with additional keywords set here
752 appenlight.request_keys_blacklist =
766 #appenlight.request_keys_blacklist =
753
767
754 ; list of namespaces that should be ignores when gathering log entries
768 ; list of namespaces that should be ignores when gathering log entries
755 ; can be string with comma separated list of namespaces
769 ; can be string with comma separated list of namespaces
756 ; (by default the client ignores own entries: appenlight_client.client)
770 ; (by default the client ignores own entries: appenlight_client.client)
757 appenlight.log_namespace_blacklist =
771 #appenlight.log_namespace_blacklist =
758
772
759 ; Statsd client config, this is used to send metrics to statsd
773 ; Statsd client config, this is used to send metrics to statsd
760 ; We recommend setting statsd_exported and scrape them using Promethues
774 ; We recommend setting statsd_exported and scrape them using Promethues
@@ -764,6 +778,16 b' appenlight.log_namespace_blacklist ='
764 #statsd.statsd_prefix =
778 #statsd.statsd_prefix =
765 #statsd.statsd_ipv6 = false
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 ; Dummy marker to add new entries after.
792 ; Dummy marker to add new entries after.
769 ; Add any custom entries below. Please don't remove this marker.
793 ; Add any custom entries below. Please don't remove this marker.
@@ -773,6 +797,7 b' custom.conf = 1'
773 ; #####################
797 ; #####################
774 ; LOGGING CONFIGURATION
798 ; LOGGING CONFIGURATION
775 ; #####################
799 ; #####################
800
776 [loggers]
801 [loggers]
777 keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper
802 keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper
778
803
@@ -780,7 +805,7 b' keys = root, sqlalchemy, beaker, celery,'
780 keys = console, console_sql
805 keys = console, console_sql
781
806
782 [formatters]
807 [formatters]
783 keys = generic, color_formatter, color_formatter_sql
808 keys = generic, json, color_formatter, color_formatter_sql
784
809
785 ; #######
810 ; #######
786 ; LOGGERS
811 ; LOGGERS
@@ -861,5 +886,5 b' format = %(asctime)s.%(msecs)03d [%(proc'
861 datefmt = %Y-%m-%d %H:%M:%S
886 datefmt = %Y-%m-%d %H:%M:%S
862
887
863 [formatter_json]
888 [formatter_json]
864 format = %(message)s
889 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
865 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter No newline at end of file
890 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter
@@ -29,6 +29,8 b" accesslog = '-'"
29 worker_tmp_dir = None
29 worker_tmp_dir = None
30 tmp_upload_dir = None
30 tmp_upload_dir = None
31
31
32 #reuse_port = True
33
32 # Custom log format
34 # Custom log format
33 #access_log_format = (
35 #access_log_format = (
34 # '%(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 # '%(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 ; GUNICORN APPLICATION SERVER
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 ; Module to use, this setting shouldn't be changed
41 ; Module to use, this setting shouldn't be changed
42 use = egg:gunicorn#main
42 use = egg:gunicorn#main
@@ -124,6 +124,18 b' use = egg:PasteDeploy#prefix'
124 prefix = /
124 prefix = /
125
125
126 [app:main]
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 use = egg:rhodecode-enterprise-ce
140 use = egg:rhodecode-enterprise-ce
129
141
@@ -717,9 +729,12 b' ssh.enable_ui_key_generator = true'
717 #statsd.statsd_prefix =
729 #statsd.statsd_prefix =
718 #statsd.statsd_ipv6 = false
730 #statsd.statsd_ipv6 = false
719
731
720
721 ; configure logging automatically at server startup set to false
732 ; configure logging automatically at server startup set to false
722 ; to use the below custom logging config.
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 #logging.autoconfigure = true
738 #logging.autoconfigure = true
724
739
725 ; specify your own custom logging config file to configure logging
740 ; specify your own custom logging config file to configure logging
@@ -733,6 +748,7 b' custom.conf = 1'
733 ; #####################
748 ; #####################
734 ; LOGGING CONFIGURATION
749 ; LOGGING CONFIGURATION
735 ; #####################
750 ; #####################
751
736 [loggers]
752 [loggers]
737 keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper
753 keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper
738
754
@@ -740,7 +756,7 b' keys = root, sqlalchemy, beaker, celery,'
740 keys = console, console_sql
756 keys = console, console_sql
741
757
742 [formatters]
758 [formatters]
743 keys = generic, color_formatter, color_formatter_sql
759 keys = generic, json, color_formatter, color_formatter_sql
744
760
745 ; #######
761 ; #######
746 ; LOGGERS
762 ; LOGGERS
@@ -821,5 +837,5 b' format = %(asctime)s.%(msecs)03d [%(proc'
821 datefmt = %Y-%m-%d %H:%M:%S
837 datefmt = %Y-%m-%d %H:%M:%S
822
838
823 [formatter_json]
839 [formatter_json]
824 format = %(message)s
840 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
825 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter No newline at end of file
841 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter
General Comments 0
You need to be logged in to leave comments. Login now