##// END OF EJS Templates
ini: cleanup
super-admin -
r1265:e9334ba1 default
parent child Browse files
Show More
@@ -1,191 +1,191 b''
1 #
2 1
3 2 ; #################################
4 3 ; RHODECODE VCSSERVER CONFIGURATION
5 4 ; #################################
6 5
7 6 [server:main]
8 ; COMMON HOST/IP CONFIG
7 ; COMMON HOST/IP CONFIG, This applies mostly to develop setup,
8 ; Host port for gunicorn are controlled by gunicorn_conf.py
9 9 host = 0.0.0.0
10 10 port = 10010
11 11
12 12
13 13 ; ###########################
14 14 ; GUNICORN APPLICATION SERVER
15 15 ; ###########################
16 16
17 ; run with gunicorn --paste rhodecode.ini
17 ; run with gunicorn --config gunicorn_conf.py --paste vcsserver.ini
18 18
19 19 ; Module to use, this setting shouldn't be changed
20 20 use = egg:gunicorn#main
21 21
22 22 [app:main]
23 23 ; The %(here)s variable will be replaced with the absolute path of parent directory
24 24 ; of this file
25 25 ; Each option in the app:main can be override by an environmental variable
26 26 ;
27 27 ;To override an option:
28 28 ;
29 29 ;RC_<KeyName>
30 30 ;Everything should be uppercase, . and - should be replaced by _.
31 31 ;For example, if you have these configuration settings:
32 32 ;rc_cache.repo_object.backend = foo
33 33 ;can be overridden by
34 34 ;export RC_CACHE_REPO_OBJECT_BACKEND=foo
35 35
36 36 use = egg:rhodecode-vcsserver
37 37
38 38
39 39 ; #############
40 40 ; DEBUG OPTIONS
41 41 ; #############
42 42
43 43 # During development the we want to have the debug toolbar enabled
44 44 pyramid.includes =
45 45 pyramid_debugtoolbar
46 46
47 47 debugtoolbar.hosts = 0.0.0.0/0
48 48 debugtoolbar.exclude_prefixes =
49 49 /css
50 50 /fonts
51 51 /images
52 52 /js
53 53
54 54 ; #################
55 55 ; END DEBUG OPTIONS
56 56 ; #################
57 57
58 58 ; Pyramid default locales, we need this to be set
59 59 #pyramid.default_locale_name = en
60 60
61 61 ; default locale used by VCS systems
62 62 #locale = en_US.UTF-8
63 63
64 64 ; path to binaries (hg,git,svn) for vcsserver, it should be set by the installer
65 65 ; at installation time, e.g /home/user/.rccontrol/vcsserver-1/profile/bin
66 66 ; or /usr/local/bin/rhodecode_bin/vcs_bin
67 67 core.binary_dir =
68 68
69 69 ; Redis connection settings for svn integrations logic
70 70 ; This connection string needs to be the same on ce and vcsserver
71 71 vcs.svn.redis_conn = redis://redis:6379/0
72 72
73 73 ; Custom exception store path, defaults to TMPDIR
74 74 ; This is used to store exception from RhodeCode in shared directory
75 75 #exception_tracker.store_path =
76 76
77 77 ; #############
78 78 ; DOGPILE CACHE
79 79 ; #############
80 80
81 81 ; Default cache dir for caches. Putting this into a ramdisk can boost performance.
82 82 ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space
83 83 #cache_dir = %(here)s/data
84 84
85 85 ; ***************************************
86 86 ; `repo_object` cache, default file based
87 87 ; ***************************************
88 88
89 89 ; `repo_object` cache settings for vcs methods for repositories
90 90 #rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace
91 91
92 92 ; cache auto-expires after N seconds
93 93 ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days)
94 94 #rc_cache.repo_object.expiration_time = 2592000
95 95
96 96 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
97 97 #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache_repo_object.db
98 98
99 99 ; ***********************************************************
100 100 ; `repo_object` cache with redis backend
101 101 ; recommended for larger instance, and for better performance
102 102 ; ***********************************************************
103 103
104 104 ; `repo_object` cache settings for vcs methods for repositories
105 105 #rc_cache.repo_object.backend = dogpile.cache.rc.redis_msgpack
106 106
107 107 ; cache auto-expires after N seconds
108 108 ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days)
109 109 #rc_cache.repo_object.expiration_time = 2592000
110 110
111 111 ; redis_expiration_time needs to be greater then expiration_time
112 112 #rc_cache.repo_object.arguments.redis_expiration_time = 3592000
113 113
114 114 #rc_cache.repo_object.arguments.host = localhost
115 115 #rc_cache.repo_object.arguments.port = 6379
116 116 #rc_cache.repo_object.arguments.db = 5
117 117 #rc_cache.repo_object.arguments.socket_timeout = 30
118 118 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
119 119 #rc_cache.repo_object.arguments.distributed_lock = true
120 120
121 121 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
122 122 #rc_cache.repo_object.arguments.lock_auto_renewal = true
123 123
124 124 ; Statsd client config, this is used to send metrics to statsd
125 125 ; We recommend setting statsd_exported and scrape them using Promethues
126 126 #statsd.enabled = false
127 127 #statsd.statsd_host = 0.0.0.0
128 128 #statsd.statsd_port = 8125
129 129 #statsd.statsd_prefix =
130 130 #statsd.statsd_ipv6 = false
131 131
132 132 ; configure logging automatically at server startup set to false
133 133 ; to use the below custom logging config.
134 134 ; RC_LOGGING_FORMATTER
135 135 ; RC_LOGGING_LEVEL
136 136 ; env variables can control the settings for logging in case of autoconfigure
137 137
138 138 #logging.autoconfigure = true
139 139
140 140 ; specify your own custom logging config file to configure logging
141 141 #logging.logging_conf_file = /path/to/custom_logging.ini
142 142
143 143 ; #####################
144 144 ; LOGGING CONFIGURATION
145 145 ; #####################
146 146
147 147 [loggers]
148 148 keys = root, vcsserver
149 149
150 150 [handlers]
151 151 keys = console
152 152
153 153 [formatters]
154 154 keys = generic, json
155 155
156 156 ; #######
157 157 ; LOGGERS
158 158 ; #######
159 159 [logger_root]
160 160 level = NOTSET
161 161 handlers = console
162 162
163 163 [logger_vcsserver]
164 164 level = DEBUG
165 165 handlers =
166 166 qualname = vcsserver
167 167 propagate = 1
168 168
169 169 ; ########
170 170 ; HANDLERS
171 171 ; ########
172 172
173 173 [handler_console]
174 174 class = StreamHandler
175 175 args = (sys.stderr, )
176 176 level = DEBUG
177 177 ; To enable JSON formatted logs replace 'generic' with 'json'
178 178 ; This allows sending properly formatted logs to grafana loki or elasticsearch
179 179 formatter = generic
180 180
181 181 ; ##########
182 182 ; FORMATTERS
183 183 ; ##########
184 184
185 185 [formatter_generic]
186 186 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
187 187 datefmt = %Y-%m-%d %H:%M:%S
188 188
189 189 [formatter_json]
190 190 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
191 191 class = vcsserver.lib._vendor.jsonlogger.JsonFormatter
@@ -1,171 +1,171 b''
1 #
2 1
3 2 ; #################################
4 3 ; RHODECODE VCSSERVER CONFIGURATION
5 4 ; #################################
6 5
7 6 [server:main]
8 ; COMMON HOST/IP CONFIG
7 ; COMMON HOST/IP CONFIG, This applies mostly to develop setup,
8 ; Host port for gunicorn are controlled by gunicorn_conf.py
9 9 host = 0.0.0.0
10 10 port = 10010
11 11
12 12
13 13 ; ###########################
14 14 ; GUNICORN APPLICATION SERVER
15 15 ; ###########################
16 16
17 ; run with gunicorn --paste rhodecode.ini
17 ; run with gunicorn --config gunicorn_conf.py --paste vcsserver.ini
18 18
19 19 ; Module to use, this setting shouldn't be changed
20 20 use = egg:gunicorn#main
21 21
22 22 [app:main]
23 23 ; The %(here)s variable will be replaced with the absolute path of parent directory
24 24 ; of this file
25 25 ; Each option in the app:main can be override by an environmental variable
26 26 ;
27 27 ;To override an option:
28 28 ;
29 29 ;RC_<KeyName>
30 30 ;Everything should be uppercase, . and - should be replaced by _.
31 31 ;For example, if you have these configuration settings:
32 32 ;rc_cache.repo_object.backend = foo
33 33 ;can be overridden by
34 34 ;export RC_CACHE_REPO_OBJECT_BACKEND=foo
35 35
36 36 use = egg:rhodecode-vcsserver
37 37
38 38 ; Pyramid default locales, we need this to be set
39 39 #pyramid.default_locale_name = en
40 40
41 41 ; default locale used by VCS systems
42 42 #locale = en_US.UTF-8
43 43
44 44 ; path to binaries (hg,git,svn) for vcsserver, it should be set by the installer
45 45 ; at installation time, e.g /home/user/.rccontrol/vcsserver-1/profile/bin
46 46 ; or /usr/local/bin/rhodecode_bin/vcs_bin
47 47 core.binary_dir =
48 48
49 49 ; Redis connection settings for svn integrations logic
50 50 ; This connection string needs to be the same on ce and vcsserver
51 51 vcs.svn.redis_conn = redis://redis:6379/0
52 52
53 53 ; Custom exception store path, defaults to TMPDIR
54 54 ; This is used to store exception from RhodeCode in shared directory
55 55 #exception_tracker.store_path =
56 56
57 57 ; #############
58 58 ; DOGPILE CACHE
59 59 ; #############
60 60
61 61 ; Default cache dir for caches. Putting this into a ramdisk can boost performance.
62 62 ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space
63 63 #cache_dir = %(here)s/data
64 64
65 65 ; ***************************************
66 66 ; `repo_object` cache, default file based
67 67 ; ***************************************
68 68
69 69 ; `repo_object` cache settings for vcs methods for repositories
70 70 #rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace
71 71
72 72 ; cache auto-expires after N seconds
73 73 ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days)
74 74 #rc_cache.repo_object.expiration_time = 2592000
75 75
76 76 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
77 77 #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache_repo_object.db
78 78
79 79 ; ***********************************************************
80 80 ; `repo_object` cache with redis backend
81 81 ; recommended for larger instance, and for better performance
82 82 ; ***********************************************************
83 83
84 84 ; `repo_object` cache settings for vcs methods for repositories
85 85 #rc_cache.repo_object.backend = dogpile.cache.rc.redis_msgpack
86 86
87 87 ; cache auto-expires after N seconds
88 88 ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days)
89 89 #rc_cache.repo_object.expiration_time = 2592000
90 90
91 91 ; redis_expiration_time needs to be greater then expiration_time
92 92 #rc_cache.repo_object.arguments.redis_expiration_time = 3592000
93 93
94 94 #rc_cache.repo_object.arguments.host = localhost
95 95 #rc_cache.repo_object.arguments.port = 6379
96 96 #rc_cache.repo_object.arguments.db = 5
97 97 #rc_cache.repo_object.arguments.socket_timeout = 30
98 98 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
99 99 #rc_cache.repo_object.arguments.distributed_lock = true
100 100
101 101 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
102 102 #rc_cache.repo_object.arguments.lock_auto_renewal = true
103 103
104 104 ; Statsd client config, this is used to send metrics to statsd
105 105 ; We recommend setting statsd_exported and scrape them using Promethues
106 106 #statsd.enabled = false
107 107 #statsd.statsd_host = 0.0.0.0
108 108 #statsd.statsd_port = 8125
109 109 #statsd.statsd_prefix =
110 110 #statsd.statsd_ipv6 = false
111 111
112 112 ; configure logging automatically at server startup set to false
113 113 ; to use the below custom logging config.
114 114 ; RC_LOGGING_FORMATTER
115 115 ; RC_LOGGING_LEVEL
116 116 ; env variables can control the settings for logging in case of autoconfigure
117 117
118 118 #logging.autoconfigure = true
119 119
120 120 ; specify your own custom logging config file to configure logging
121 121 #logging.logging_conf_file = /path/to/custom_logging.ini
122 122
123 123 ; #####################
124 124 ; LOGGING CONFIGURATION
125 125 ; #####################
126 126
127 127 [loggers]
128 128 keys = root, vcsserver
129 129
130 130 [handlers]
131 131 keys = console
132 132
133 133 [formatters]
134 134 keys = generic, json
135 135
136 136 ; #######
137 137 ; LOGGERS
138 138 ; #######
139 139 [logger_root]
140 140 level = NOTSET
141 141 handlers = console
142 142
143 143 [logger_vcsserver]
144 144 level = INFO
145 145 handlers =
146 146 qualname = vcsserver
147 147 propagate = 1
148 148
149 149 ; ########
150 150 ; HANDLERS
151 151 ; ########
152 152
153 153 [handler_console]
154 154 class = StreamHandler
155 155 args = (sys.stderr, )
156 156 level = INFO
157 157 ; To enable JSON formatted logs replace 'generic' with 'json'
158 158 ; This allows sending properly formatted logs to grafana loki or elasticsearch
159 159 formatter = generic
160 160
161 161 ; ##########
162 162 ; FORMATTERS
163 163 ; ##########
164 164
165 165 [formatter_generic]
166 166 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
167 167 datefmt = %Y-%m-%d %H:%M:%S
168 168
169 169 [formatter_json]
170 170 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
171 171 class = vcsserver.lib._vendor.jsonlogger.JsonFormatter
General Comments 0
You need to be logged in to leave comments. Login now