Show More
@@ -1,196 +1,191 b'' | |||||
1 | # required for pushd to work.. |
|
1 | # required for pushd to work.. | |
2 | SHELL = /bin/bash |
|
2 | SHELL = /bin/bash | |
3 |
|
3 | |||
4 |
|
4 | |||
5 | # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py |
|
5 | # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py | |
6 | OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES} |
|
6 | OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES} | |
7 |
|
7 | |||
8 | .PHONY: clean |
|
8 | .PHONY: clean | |
9 | ## Cleanup compiled and cache py files |
|
9 | ## Cleanup compiled and cache py files | |
10 | clean: |
|
10 | clean: | |
11 | make test-clean |
|
11 | make test-clean | |
12 | find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';' |
|
12 | find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';' | |
13 | find . -type d -name "build" -prune -exec rm -rf '{}' ';' |
|
13 | find . -type d -name "build" -prune -exec rm -rf '{}' ';' | |
14 |
|
14 | |||
15 |
|
15 | |||
16 | .PHONY: test |
|
16 | .PHONY: test | |
17 | ## run test-clean and tests |
|
17 | ## run test-clean and tests | |
18 | test: |
|
18 | test: | |
19 | make test-clean |
|
19 | make test-clean | |
20 | make test-only |
|
20 | make test-only | |
21 |
|
21 | |||
22 |
|
22 | |||
23 | .PHONY: test-clean |
|
23 | .PHONY: test-clean | |
24 | ## run test-clean and tests |
|
24 | ## run test-clean and tests | |
25 | test-clean: |
|
25 | test-clean: | |
26 | rm -rf coverage.xml htmlcov junit.xml pylint.log result |
|
26 | rm -rf coverage.xml htmlcov junit.xml pylint.log result | |
27 | find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' |
|
27 | find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' | |
28 | find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';' |
|
28 | find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';' | |
29 |
|
29 | |||
30 |
|
30 | |||
31 | .PHONY: test-only |
|
31 | .PHONY: test-only | |
32 | ## Run tests only without cleanup |
|
32 | ## Run tests only without cleanup | |
33 | test-only: |
|
33 | test-only: | |
34 | PYTHONHASHSEED=random \ |
|
34 | PYTHONHASHSEED=random \ | |
35 | py.test -x -vv -r xw -p no:sugar \ |
|
35 | py.test -x -vv -r xw -p no:sugar \ | |
36 | --cov-report=term-missing --cov-report=html \ |
|
36 | --cov-report=term-missing --cov-report=html \ | |
37 | --cov=rhodecode rhodecode |
|
37 | --cov=rhodecode rhodecode | |
38 |
|
38 | |||
39 |
|
39 | |||
40 | .PHONY: test-only-mysql |
|
40 | .PHONY: test-only-mysql | |
41 | ## run tests against mysql |
|
41 | ## run tests against mysql | |
42 | test-only-mysql: |
|
42 | test-only-mysql: | |
43 | PYTHONHASHSEED=random \ |
|
43 | PYTHONHASHSEED=random \ | |
44 | py.test -x -vv -r xw -p no:sugar \ |
|
44 | py.test -x -vv -r xw -p no:sugar \ | |
45 | --cov-report=term-missing --cov-report=html \ |
|
45 | --cov-report=term-missing --cov-report=html \ | |
46 | --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "mysql://root:qweqwe@localhost/rhodecode_test?charset=utf8"}}' \ |
|
46 | --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "mysql://root:qweqwe@localhost/rhodecode_test?charset=utf8"}}' \ | |
47 | --cov=rhodecode rhodecode |
|
47 | --cov=rhodecode rhodecode | |
48 |
|
48 | |||
49 |
|
49 | |||
50 | .PHONY: test-only-postgres |
|
50 | .PHONY: test-only-postgres | |
51 | ## run tests against postgres |
|
51 | ## run tests against postgres | |
52 | test-only-postgres: |
|
52 | test-only-postgres: | |
53 | PYTHONHASHSEED=random \ |
|
53 | PYTHONHASHSEED=random \ | |
54 | py.test -x -vv -r xw -p no:sugar \ |
|
54 | py.test -x -vv -r xw -p no:sugar \ | |
55 | --cov-report=term-missing --cov-report=html \ |
|
55 | --cov-report=term-missing --cov-report=html \ | |
56 | --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "postgresql://postgres:qweqwe@localhost/rhodecode_test"}}' \ |
|
56 | --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "postgresql://postgres:qweqwe@localhost/rhodecode_test"}}' \ | |
57 | --cov=rhodecode rhodecode |
|
57 | --cov=rhodecode rhodecode | |
58 |
|
58 | |||
59 | .PHONY: ruff-check |
|
59 | .PHONY: ruff-check | |
60 | ## run a ruff analysis |
|
60 | ## run a ruff analysis | |
61 | ruff-check: |
|
61 | ruff-check: | |
62 | ruff check --ignore F401 --ignore I001 --ignore E402 --ignore E501 --ignore F841 --exclude rhodecode/lib/dbmigrate --exclude .eggs --exclude .dev . |
|
62 | ruff check --ignore F401 --ignore I001 --ignore E402 --ignore E501 --ignore F841 --exclude rhodecode/lib/dbmigrate --exclude .eggs --exclude .dev . | |
63 |
|
63 | |||
64 |
|
64 | |||
65 | .PHONY: docs |
|
65 | .PHONY: docs | |
66 | ## build docs |
|
66 | ## build docs | |
67 | docs: |
|
67 | docs: | |
68 | (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make clean html) |
|
68 | (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make clean html) | |
69 |
|
69 | |||
70 |
|
70 | |||
71 | .PHONY: docs-clean |
|
71 | .PHONY: docs-clean | |
72 | ## Cleanup docs |
|
72 | ## Cleanup docs | |
73 | docs-clean: |
|
73 | docs-clean: | |
74 | (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make clean) |
|
74 | (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make clean) | |
75 |
|
75 | |||
76 |
|
76 | |||
77 | .PHONY: docs-cleanup |
|
77 | .PHONY: docs-cleanup | |
78 | ## Cleanup docs |
|
78 | ## Cleanup docs | |
79 | docs-cleanup: |
|
79 | docs-cleanup: | |
80 | (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make cleanup) |
|
80 | (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make cleanup) | |
81 |
|
81 | |||
82 |
|
82 | |||
83 | .PHONY: web-build |
|
83 | .PHONY: web-build | |
84 | ## Build JS packages static/js |
|
84 | ## Build JS packages static/js | |
85 | web-build: |
|
85 | web-build: | |
86 | docker run -it --rm -v $(PWD):/project --workdir=/project rhodecode/static-files-build:16 -c "npm install && /project/node_modules/.bin/grunt" |
|
86 | docker run -it --rm -v $(PWD):/project --workdir=/project rhodecode/static-files-build:16 -c "npm install && /project/node_modules/.bin/grunt" | |
87 | # run static file check |
|
87 | # run static file check | |
88 | ./rhodecode/tests/scripts/static-file-check.sh rhodecode/public/ |
|
88 | ./rhodecode/tests/scripts/static-file-check.sh rhodecode/public/ | |
89 | rm -rf node_modules |
|
89 | rm -rf node_modules | |
90 |
|
90 | |||
91 |
|
91 | |||
92 | .PHONY: pip-packages |
|
92 | .PHONY: pip-packages | |
93 | ## Show outdated packages |
|
93 | ## Show outdated packages | |
94 | pip-packages: |
|
94 | pip-packages: | |
95 | python ${OUTDATED_PACKAGES} |
|
95 | python ${OUTDATED_PACKAGES} | |
96 |
|
96 | |||
97 |
|
97 | |||
98 | .PHONY: build |
|
98 | .PHONY: build | |
99 | ## Build sdist/egg |
|
99 | ## Build sdist/egg | |
100 | build: |
|
100 | build: | |
101 | python -m build |
|
101 | python -m build | |
102 |
|
102 | |||
103 |
|
103 | |||
104 | .PHONY: dev-sh |
|
104 | .PHONY: dev-sh | |
105 | ## make dev-sh |
|
105 | ## make dev-sh | |
106 | dev-sh: |
|
106 | dev-sh: | |
107 | sudo echo "deb [trusted=yes] https://apt.fury.io/rsteube/ /" | sudo tee -a "/etc/apt/sources.list.d/fury.list" |
|
107 | sudo echo "deb [trusted=yes] https://apt.fury.io/rsteube/ /" | sudo tee -a "/etc/apt/sources.list.d/fury.list" | |
108 | sudo apt-get update |
|
108 | sudo apt-get update | |
109 | sudo apt-get install -y zsh carapace-bin |
|
109 | sudo apt-get install -y zsh carapace-bin | |
110 | rm -rf /home/rhodecode/.oh-my-zsh |
|
110 | rm -rf /home/rhodecode/.oh-my-zsh | |
111 | curl https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh |
|
111 | curl https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh | |
112 | @echo "source <(carapace _carapace)" > /home/rhodecode/.zsrc |
|
112 | @echo "source <(carapace _carapace)" > /home/rhodecode/.zsrc | |
113 | @echo "${RC_DEV_CMD_HELP}" |
|
113 | @echo "${RC_DEV_CMD_HELP}" | |
114 | @PROMPT='%(?.%F{green}β.%F{red}?%?)%f %B%F{240}%1~%f%b %# ' zsh |
|
114 | @PROMPT='%(?.%F{green}β.%F{red}?%?)%f %B%F{240}%1~%f%b %# ' zsh | |
115 |
|
115 | |||
116 |
|
116 | |||
117 | .PHONY: dev-cleanup |
|
117 | .PHONY: dev-cleanup | |
118 | ## Cleanup: pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y |
|
118 | ## Cleanup: pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y | |
119 | dev-cleanup: |
|
119 | dev-cleanup: | |
120 | pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y |
|
120 | pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y | |
121 | rm -rf /tmp/* |
|
121 | rm -rf /tmp/* | |
122 |
|
122 | |||
123 |
|
123 | |||
124 | .PHONY: dev-env |
|
124 | .PHONY: dev-env | |
125 | ## make dev-env based on the requirements files and install develop of packages |
|
125 | ## make dev-env based on the requirements files and install develop of packages | |
126 | dev-env: |
|
126 | dev-env: | |
127 | sudo -u root chown rhodecode:rhodecode /home/rhodecode/.cache/pip/ |
|
127 | sudo -u root chown rhodecode:rhodecode /home/rhodecode/.cache/pip/ | |
128 | pip install build virtualenv |
|
128 | pip install build virtualenv | |
129 | pushd ../rhodecode-vcsserver/ && make dev-env && popd |
|
129 | pushd ../rhodecode-vcsserver/ && make dev-env && popd | |
130 | pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_rc_tools.txt -r requirements_test.txt -r requirements_debug.txt |
|
130 | pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_rc_tools.txt -r requirements_test.txt -r requirements_debug.txt | |
131 | pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_rc_tools.txt -r requirements_test.txt -r requirements_debug.txt |
|
131 | pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_rc_tools.txt -r requirements_test.txt -r requirements_debug.txt | |
132 | pip install -e . |
|
132 | pip install -e . | |
133 |
|
133 | |||
134 |
|
134 | |||
135 | .PHONY: sh |
|
135 | .PHONY: sh | |
136 | ## shortcut for make dev-sh dev-env |
|
136 | ## shortcut for make dev-sh dev-env | |
137 | sh: |
|
137 | sh: | |
138 | make dev-env |
|
138 | make dev-env | |
139 | make dev-sh |
|
139 | make dev-sh | |
140 |
|
140 | |||
141 |
|
141 | |||
142 | .PHONY: dev-srv |
|
|||
143 | ## run develop server instance, docker exec -it $(docker ps -q --filter 'name=dev-enterprise-ce') /bin/bash |
|
|||
144 | dev-srv: |
|
|||
145 | pserve --reload .dev/dev.ini |
|
|||
146 |
|
||||
147 | ## Allows changes of workers e.g make dev-srv-g workers=2 |
|
142 | ## Allows changes of workers e.g make dev-srv-g workers=2 | |
148 | workers?=1 |
|
143 | workers?=1 | |
149 |
|
144 | |||
150 |
.PHONY: dev-srv |
|
145 | .PHONY: dev-srv | |
151 | ## run gunicorn multi process workers |
|
146 | ## run gunicorn multi process workers | |
152 | dev-srv-g: |
|
147 | dev-srv-g: | |
153 | gunicorn --paste=.dev/dev.ini --bind=0.0.0.0:10020 --config=.dev/gunicorn_config.py --timeout=120 --reload --workers=$(workers) |
|
148 | gunicorn --paste=.dev/dev.ini --bind=0.0.0.0:10020 --config=.dev/gunicorn_config.py --timeout=120 --reload --workers=$(workers) | |
154 |
|
149 | |||
155 |
|
150 | |||
156 | # Default command on calling make |
|
151 | # Default command on calling make | |
157 | .DEFAULT_GOAL := show-help |
|
152 | .DEFAULT_GOAL := show-help | |
158 |
|
153 | |||
159 | .PHONY: show-help |
|
154 | .PHONY: show-help | |
160 | show-help: |
|
155 | show-help: | |
161 | @echo "$$(tput bold)Available rules:$$(tput sgr0)" |
|
156 | @echo "$$(tput bold)Available rules:$$(tput sgr0)" | |
162 | @echo |
|
157 | @echo | |
163 | @sed -n -e "/^## / { \ |
|
158 | @sed -n -e "/^## / { \ | |
164 | h; \ |
|
159 | h; \ | |
165 | s/.*//; \ |
|
160 | s/.*//; \ | |
166 | :doc" \ |
|
161 | :doc" \ | |
167 | -e "H; \ |
|
162 | -e "H; \ | |
168 | n; \ |
|
163 | n; \ | |
169 | s/^## //; \ |
|
164 | s/^## //; \ | |
170 | t doc" \ |
|
165 | t doc" \ | |
171 | -e "s/:.*//; \ |
|
166 | -e "s/:.*//; \ | |
172 | G; \ |
|
167 | G; \ | |
173 | s/\\n## /---/; \ |
|
168 | s/\\n## /---/; \ | |
174 | s/\\n/ /g; \ |
|
169 | s/\\n/ /g; \ | |
175 | p; \ |
|
170 | p; \ | |
176 | }" ${MAKEFILE_LIST} \ |
|
171 | }" ${MAKEFILE_LIST} \ | |
177 | | LC_ALL='C' sort --ignore-case \ |
|
172 | | LC_ALL='C' sort --ignore-case \ | |
178 | | awk -F '---' \ |
|
173 | | awk -F '---' \ | |
179 | -v ncol=$$(tput cols) \ |
|
174 | -v ncol=$$(tput cols) \ | |
180 | -v indent=19 \ |
|
175 | -v indent=19 \ | |
181 | -v col_on="$$(tput setaf 6)" \ |
|
176 | -v col_on="$$(tput setaf 6)" \ | |
182 | -v col_off="$$(tput sgr0)" \ |
|
177 | -v col_off="$$(tput sgr0)" \ | |
183 | '{ \ |
|
178 | '{ \ | |
184 | printf "%s%*s%s ", col_on, -indent, $$1, col_off; \ |
|
179 | printf "%s%*s%s ", col_on, -indent, $$1, col_off; \ | |
185 | n = split($$2, words, " "); \ |
|
180 | n = split($$2, words, " "); \ | |
186 | line_length = ncol - indent; \ |
|
181 | line_length = ncol - indent; \ | |
187 | for (i = 1; i <= n; i++) { \ |
|
182 | for (i = 1; i <= n; i++) { \ | |
188 | line_length -= length(words[i]) + 1; \ |
|
183 | line_length -= length(words[i]) + 1; \ | |
189 | if (line_length <= 0) { \ |
|
184 | if (line_length <= 0) { \ | |
190 | line_length = ncol - indent - length(words[i]) - 1; \ |
|
185 | line_length = ncol - indent - length(words[i]) - 1; \ | |
191 | printf "\n%*s ", -indent, " "; \ |
|
186 | printf "\n%*s ", -indent, " "; \ | |
192 | } \ |
|
187 | } \ | |
193 | printf "%s ", words[i]; \ |
|
188 | printf "%s ", words[i]; \ | |
194 | } \ |
|
189 | } \ | |
195 | printf "\n"; \ |
|
190 | printf "\n"; \ | |
196 | }' |
|
191 | }' |
@@ -1,820 +1,803 b'' | |||||
1 |
|
1 | |||
2 | ; ######################################### |
|
2 | ; ######################################### | |
3 | ; RHODECODE COMMUNITY EDITION CONFIGURATION |
|
3 | ; RHODECODE COMMUNITY EDITION CONFIGURATION | |
4 | ; ######################################### |
|
4 | ; ######################################### | |
5 |
|
5 | |||
6 | [DEFAULT] |
|
6 | [DEFAULT] | |
7 | ; Debug flag sets all loggers to debug, and enables request tracking |
|
7 | ; Debug flag sets all loggers to debug, and enables request tracking | |
8 | debug = true |
|
8 | debug = true | |
9 |
|
9 | |||
10 | ; ######################################################################## |
|
10 | ; ######################################################################## | |
11 | ; EMAIL CONFIGURATION |
|
11 | ; EMAIL CONFIGURATION | |
12 | ; These settings will be used by the RhodeCode mailing system |
|
12 | ; These settings will be used by the RhodeCode mailing system | |
13 | ; ######################################################################## |
|
13 | ; ######################################################################## | |
14 |
|
14 | |||
15 | ; prefix all emails subjects with given prefix, helps filtering out emails |
|
15 | ; prefix all emails subjects with given prefix, helps filtering out emails | |
16 | #email_prefix = [RhodeCode] |
|
16 | #email_prefix = [RhodeCode] | |
17 |
|
17 | |||
18 | ; email FROM address all mails will be sent |
|
18 | ; email FROM address all mails will be sent | |
19 | #app_email_from = rhodecode-noreply@localhost |
|
19 | #app_email_from = rhodecode-noreply@localhost | |
20 |
|
20 | |||
21 | #smtp_server = mail.server.com |
|
21 | #smtp_server = mail.server.com | |
22 | #smtp_username = |
|
22 | #smtp_username = | |
23 | #smtp_password = |
|
23 | #smtp_password = | |
24 | #smtp_port = |
|
24 | #smtp_port = | |
25 | #smtp_use_tls = false |
|
25 | #smtp_use_tls = false | |
26 | #smtp_use_ssl = true |
|
26 | #smtp_use_ssl = true | |
27 |
|
27 | |||
28 | [server:main] |
|
28 | [server:main] | |
29 | ; COMMON HOST/IP CONFIG, This applies mostly to develop setup, |
|
29 | ; COMMON HOST/IP CONFIG, This applies mostly to develop setup, | |
30 | ; Host port for gunicorn are controlled by gunicorn_conf.py |
|
30 | ; Host port for gunicorn are controlled by gunicorn_conf.py | |
31 | host = 127.0.0.1 |
|
31 | host = 127.0.0.1 | |
32 | port = 10020 |
|
32 | port = 10020 | |
33 |
|
33 | |||
34 | ; ################################################## |
|
|||
35 | ; WAITRESS WSGI SERVER - Recommended for Development |
|
|||
36 | ; ################################################## |
|
|||
37 |
|
||||
38 | ; use server type |
|
|||
39 | use = egg:waitress#main |
|
|||
40 |
|
||||
41 | ; number of worker threads |
|
|||
42 | threads = 5 |
|
|||
43 |
|
||||
44 | ; MAX BODY SIZE 100GB |
|
|||
45 | max_request_body_size = 107374182400 |
|
|||
46 |
|
||||
47 | ; Use poll instead of select, fixes file descriptors limits problems. |
|
|||
48 | ; May not work on old windows systems. |
|
|||
49 | asyncore_use_poll = true |
|
|||
50 |
|
||||
51 |
|
34 | |||
52 | ; ########################### |
|
35 | ; ########################### | |
53 | ; GUNICORN APPLICATION SERVER |
|
36 | ; GUNICORN APPLICATION SERVER | |
54 | ; ########################### |
|
37 | ; ########################### | |
55 |
|
38 | |||
56 | ; run with gunicorn --paste rhodecode.ini --config gunicorn_conf.py |
|
39 | ; run with gunicorn --paste rhodecode.ini --config gunicorn_conf.py | |
57 |
|
40 | |||
58 | ; Module to use, this setting shouldn't be changed |
|
41 | ; Module to use, this setting shouldn't be changed | |
59 |
|
|
42 | use = egg:gunicorn#main | |
60 |
|
43 | |||
61 | ; Prefix middleware for RhodeCode. |
|
44 | ; Prefix middleware for RhodeCode. | |
62 | ; recommended when using proxy setup. |
|
45 | ; recommended when using proxy setup. | |
63 | ; allows to set RhodeCode under a prefix in server. |
|
46 | ; allows to set RhodeCode under a prefix in server. | |
64 | ; eg https://server.com/custom_prefix. Enable `filter-with =` option below as well. |
|
47 | ; eg https://server.com/custom_prefix. Enable `filter-with =` option below as well. | |
65 | ; And set your prefix like: `prefix = /custom_prefix` |
|
48 | ; And set your prefix like: `prefix = /custom_prefix` | |
66 | ; be sure to also set beaker.session.cookie_path = /custom_prefix if you need |
|
49 | ; be sure to also set beaker.session.cookie_path = /custom_prefix if you need | |
67 | ; to make your cookies only work on prefix url |
|
50 | ; to make your cookies only work on prefix url | |
68 | [filter:proxy-prefix] |
|
51 | [filter:proxy-prefix] | |
69 | use = egg:PasteDeploy#prefix |
|
52 | use = egg:PasteDeploy#prefix | |
70 | prefix = / |
|
53 | prefix = / | |
71 |
|
54 | |||
72 | [app:main] |
|
55 | [app:main] | |
73 | ; The %(here)s variable will be replaced with the absolute path of parent directory |
|
56 | ; The %(here)s variable will be replaced with the absolute path of parent directory | |
74 | ; of this file |
|
57 | ; of this file | |
75 | ; Each option in the app:main can be override by an environmental variable |
|
58 | ; Each option in the app:main can be override by an environmental variable | |
76 | ; |
|
59 | ; | |
77 | ;To override an option: |
|
60 | ;To override an option: | |
78 | ; |
|
61 | ; | |
79 | ;RC_<KeyName> |
|
62 | ;RC_<KeyName> | |
80 | ;Everything should be uppercase, . and - should be replaced by _. |
|
63 | ;Everything should be uppercase, . and - should be replaced by _. | |
81 | ;For example, if you have these configuration settings: |
|
64 | ;For example, if you have these configuration settings: | |
82 | ;rc_cache.repo_object.backend = foo |
|
65 | ;rc_cache.repo_object.backend = foo | |
83 | ;can be overridden by |
|
66 | ;can be overridden by | |
84 | ;export RC_CACHE_REPO_OBJECT_BACKEND=foo |
|
67 | ;export RC_CACHE_REPO_OBJECT_BACKEND=foo | |
85 |
|
68 | |||
86 | use = egg:rhodecode-enterprise-ce |
|
69 | use = egg:rhodecode-enterprise-ce | |
87 |
|
70 | |||
88 | ; enable proxy prefix middleware, defined above |
|
71 | ; enable proxy prefix middleware, defined above | |
89 | #filter-with = proxy-prefix |
|
72 | #filter-with = proxy-prefix | |
90 |
|
73 | |||
91 | ; ############# |
|
74 | ; ############# | |
92 | ; DEBUG OPTIONS |
|
75 | ; DEBUG OPTIONS | |
93 | ; ############# |
|
76 | ; ############# | |
94 |
|
77 | |||
95 | pyramid.reload_templates = true |
|
78 | pyramid.reload_templates = true | |
96 |
|
79 | |||
97 | # During development the we want to have the debug toolbar enabled |
|
80 | # During development the we want to have the debug toolbar enabled | |
98 | pyramid.includes = |
|
81 | pyramid.includes = | |
99 | pyramid_debugtoolbar |
|
82 | pyramid_debugtoolbar | |
100 |
|
83 | |||
101 | debugtoolbar.hosts = 0.0.0.0/0 |
|
84 | debugtoolbar.hosts = 0.0.0.0/0 | |
102 | debugtoolbar.exclude_prefixes = |
|
85 | debugtoolbar.exclude_prefixes = | |
103 | /css |
|
86 | /css | |
104 | /fonts |
|
87 | /fonts | |
105 | /images |
|
88 | /images | |
106 | /js |
|
89 | /js | |
107 |
|
90 | |||
108 | ## RHODECODE PLUGINS ## |
|
91 | ## RHODECODE PLUGINS ## | |
109 | rhodecode.includes = |
|
92 | rhodecode.includes = | |
110 | rhodecode.api |
|
93 | rhodecode.api | |
111 |
|
94 | |||
112 |
|
95 | |||
113 | # api prefix url |
|
96 | # api prefix url | |
114 | rhodecode.api.url = /_admin/api |
|
97 | rhodecode.api.url = /_admin/api | |
115 |
|
98 | |||
116 | ; enable debug style page |
|
99 | ; enable debug style page | |
117 | debug_style = true |
|
100 | debug_style = true | |
118 |
|
101 | |||
119 | ; ################# |
|
102 | ; ################# | |
120 | ; END DEBUG OPTIONS |
|
103 | ; END DEBUG OPTIONS | |
121 | ; ################# |
|
104 | ; ################# | |
122 |
|
105 | |||
123 | ; encryption key used to encrypt social plugin tokens, |
|
106 | ; encryption key used to encrypt social plugin tokens, | |
124 | ; remote_urls with credentials etc, if not set it defaults to |
|
107 | ; remote_urls with credentials etc, if not set it defaults to | |
125 | ; `beaker.session.secret` |
|
108 | ; `beaker.session.secret` | |
126 | #rhodecode.encrypted_values.secret = |
|
109 | #rhodecode.encrypted_values.secret = | |
127 |
|
110 | |||
128 | ; decryption strict mode (enabled by default). It controls if decryption raises |
|
111 | ; decryption strict mode (enabled by default). It controls if decryption raises | |
129 | ; `SignatureVerificationError` in case of wrong key, or damaged encryption data. |
|
112 | ; `SignatureVerificationError` in case of wrong key, or damaged encryption data. | |
130 | #rhodecode.encrypted_values.strict = false |
|
113 | #rhodecode.encrypted_values.strict = false | |
131 |
|
114 | |||
132 | ; Pick algorithm for encryption. Either fernet (more secure) or aes (default) |
|
115 | ; Pick algorithm for encryption. Either fernet (more secure) or aes (default) | |
133 | ; fernet is safer, and we strongly recommend switching to it. |
|
116 | ; fernet is safer, and we strongly recommend switching to it. | |
134 | ; Due to backward compatibility aes is used as default. |
|
117 | ; Due to backward compatibility aes is used as default. | |
135 | #rhodecode.encrypted_values.algorithm = fernet |
|
118 | #rhodecode.encrypted_values.algorithm = fernet | |
136 |
|
119 | |||
137 | ; Return gzipped responses from RhodeCode (static files/application) |
|
120 | ; Return gzipped responses from RhodeCode (static files/application) | |
138 | gzip_responses = false |
|
121 | gzip_responses = false | |
139 |
|
122 | |||
140 | ; Auto-generate javascript routes file on startup |
|
123 | ; Auto-generate javascript routes file on startup | |
141 | generate_js_files = false |
|
124 | generate_js_files = false | |
142 |
|
125 | |||
143 | ; System global default language. |
|
126 | ; System global default language. | |
144 | ; All available languages: en (default), be, de, es, fr, it, ja, pl, pt, ru, zh |
|
127 | ; All available languages: en (default), be, de, es, fr, it, ja, pl, pt, ru, zh | |
145 | lang = en |
|
128 | lang = en | |
146 |
|
129 | |||
147 | ; Perform a full repository scan and import on each server start. |
|
130 | ; Perform a full repository scan and import on each server start. | |
148 | ; Settings this to true could lead to very long startup time. |
|
131 | ; Settings this to true could lead to very long startup time. | |
149 | startup.import_repos = false |
|
132 | startup.import_repos = false | |
150 |
|
133 | |||
151 | ; URL at which the application is running. This is used for Bootstrapping |
|
134 | ; URL at which the application is running. This is used for Bootstrapping | |
152 | ; requests in context when no web request is available. Used in ishell, or |
|
135 | ; requests in context when no web request is available. Used in ishell, or | |
153 | ; SSH calls. Set this for events to receive proper url for SSH calls. |
|
136 | ; SSH calls. Set this for events to receive proper url for SSH calls. | |
154 | app.base_url = http://rhodecode.local |
|
137 | app.base_url = http://rhodecode.local | |
155 |
|
138 | |||
156 | ; Host at which the Service API is running. |
|
139 | ; Host at which the Service API is running. | |
157 | app.service_api.host = http://rhodecode.local:10020 |
|
140 | app.service_api.host = http://rhodecode.local:10020 | |
158 |
|
141 | |||
159 | ; Secret for Service API authentication. |
|
142 | ; Secret for Service API authentication. | |
160 | app.service_api.token = |
|
143 | app.service_api.token = | |
161 |
|
144 | |||
162 | ; Unique application ID. Should be a random unique string for security. |
|
145 | ; Unique application ID. Should be a random unique string for security. | |
163 | app_instance_uuid = rc-production |
|
146 | app_instance_uuid = rc-production | |
164 |
|
147 | |||
165 | ; Cut off limit for large diffs (size in bytes). If overall diff size on |
|
148 | ; Cut off limit for large diffs (size in bytes). If overall diff size on | |
166 | ; commit, or pull request exceeds this limit this diff will be displayed |
|
149 | ; commit, or pull request exceeds this limit this diff will be displayed | |
167 | ; partially. E.g 512000 == 512Kb |
|
150 | ; partially. E.g 512000 == 512Kb | |
168 | cut_off_limit_diff = 512000 |
|
151 | cut_off_limit_diff = 512000 | |
169 |
|
152 | |||
170 | ; Cut off limit for large files inside diffs (size in bytes). Each individual |
|
153 | ; Cut off limit for large files inside diffs (size in bytes). Each individual | |
171 | ; file inside diff which exceeds this limit will be displayed partially. |
|
154 | ; file inside diff which exceeds this limit will be displayed partially. | |
172 | ; E.g 128000 == 128Kb |
|
155 | ; E.g 128000 == 128Kb | |
173 | cut_off_limit_file = 128000 |
|
156 | cut_off_limit_file = 128000 | |
174 |
|
157 | |||
175 | ; Use cached version of vcs repositories everywhere. Recommended to be `true` |
|
158 | ; Use cached version of vcs repositories everywhere. Recommended to be `true` | |
176 | vcs_full_cache = true |
|
159 | vcs_full_cache = true | |
177 |
|
160 | |||
178 | ; Force https in RhodeCode, fixes https redirects, assumes it's always https. |
|
161 | ; Force https in RhodeCode, fixes https redirects, assumes it's always https. | |
179 | ; Normally this is controlled by proper flags sent from http server such as Nginx or Apache |
|
162 | ; Normally this is controlled by proper flags sent from http server such as Nginx or Apache | |
180 | force_https = false |
|
163 | force_https = false | |
181 |
|
164 | |||
182 | ; use Strict-Transport-Security headers |
|
165 | ; use Strict-Transport-Security headers | |
183 | use_htsts = false |
|
166 | use_htsts = false | |
184 |
|
167 | |||
185 | ; Set to true if your repos are exposed using the dumb protocol |
|
168 | ; Set to true if your repos are exposed using the dumb protocol | |
186 | git_update_server_info = false |
|
169 | git_update_server_info = false | |
187 |
|
170 | |||
188 | ; RSS/ATOM feed options |
|
171 | ; RSS/ATOM feed options | |
189 | rss_cut_off_limit = 256000 |
|
172 | rss_cut_off_limit = 256000 | |
190 | rss_items_per_page = 10 |
|
173 | rss_items_per_page = 10 | |
191 | rss_include_diff = false |
|
174 | rss_include_diff = false | |
192 |
|
175 | |||
193 | ; gist URL alias, used to create nicer urls for gist. This should be an |
|
176 | ; gist URL alias, used to create nicer urls for gist. This should be an | |
194 | ; url that does rewrites to _admin/gists/{gistid}. |
|
177 | ; url that does rewrites to _admin/gists/{gistid}. | |
195 | ; example: http://gist.rhodecode.org/{gistid}. Empty means use the internal |
|
178 | ; example: http://gist.rhodecode.org/{gistid}. Empty means use the internal | |
196 | ; RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid} |
|
179 | ; RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid} | |
197 | gist_alias_url = |
|
180 | gist_alias_url = | |
198 |
|
181 | |||
199 | ; List of views (using glob pattern syntax) that AUTH TOKENS could be |
|
182 | ; List of views (using glob pattern syntax) that AUTH TOKENS could be | |
200 | ; used for access. |
|
183 | ; used for access. | |
201 | ; Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it |
|
184 | ; Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it | |
202 | ; came from the the logged in user who own this authentication token. |
|
185 | ; came from the the logged in user who own this authentication token. | |
203 | ; Additionally @TOKEN syntax can be used to bound the view to specific |
|
186 | ; Additionally @TOKEN syntax can be used to bound the view to specific | |
204 | ; authentication token. Such view would be only accessible when used together |
|
187 | ; authentication token. Such view would be only accessible when used together | |
205 | ; with this authentication token |
|
188 | ; with this authentication token | |
206 | ; list of all views can be found under `/_admin/permissions/auth_token_access` |
|
189 | ; list of all views can be found under `/_admin/permissions/auth_token_access` | |
207 | ; The list should be "," separated and on a single line. |
|
190 | ; The list should be "," separated and on a single line. | |
208 | ; Most common views to enable: |
|
191 | ; Most common views to enable: | |
209 |
|
192 | |||
210 | # RepoCommitsView:repo_commit_download |
|
193 | # RepoCommitsView:repo_commit_download | |
211 | # RepoCommitsView:repo_commit_patch |
|
194 | # RepoCommitsView:repo_commit_patch | |
212 | # RepoCommitsView:repo_commit_raw |
|
195 | # RepoCommitsView:repo_commit_raw | |
213 | # RepoCommitsView:repo_commit_raw@TOKEN |
|
196 | # RepoCommitsView:repo_commit_raw@TOKEN | |
214 | # RepoFilesView:repo_files_diff |
|
197 | # RepoFilesView:repo_files_diff | |
215 | # RepoFilesView:repo_archivefile |
|
198 | # RepoFilesView:repo_archivefile | |
216 | # RepoFilesView:repo_file_raw |
|
199 | # RepoFilesView:repo_file_raw | |
217 | # GistView:* |
|
200 | # GistView:* | |
218 | api_access_controllers_whitelist = |
|
201 | api_access_controllers_whitelist = | |
219 |
|
202 | |||
220 | ; Default encoding used to convert from and to unicode |
|
203 | ; Default encoding used to convert from and to unicode | |
221 | ; can be also a comma separated list of encoding in case of mixed encodings |
|
204 | ; can be also a comma separated list of encoding in case of mixed encodings | |
222 | default_encoding = UTF-8 |
|
205 | default_encoding = UTF-8 | |
223 |
|
206 | |||
224 | ; instance-id prefix |
|
207 | ; instance-id prefix | |
225 | ; a prefix key for this instance used for cache invalidation when running |
|
208 | ; a prefix key for this instance used for cache invalidation when running | |
226 | ; multiple instances of RhodeCode, make sure it's globally unique for |
|
209 | ; multiple instances of RhodeCode, make sure it's globally unique for | |
227 | ; all running RhodeCode instances. Leave empty if you don't use it |
|
210 | ; all running RhodeCode instances. Leave empty if you don't use it | |
228 | instance_id = |
|
211 | instance_id = | |
229 |
|
212 | |||
230 | ; Fallback authentication plugin. Set this to a plugin ID to force the usage |
|
213 | ; Fallback authentication plugin. Set this to a plugin ID to force the usage | |
231 | ; of an authentication plugin also if it is disabled by it's settings. |
|
214 | ; of an authentication plugin also if it is disabled by it's settings. | |
232 | ; This could be useful if you are unable to log in to the system due to broken |
|
215 | ; This could be useful if you are unable to log in to the system due to broken | |
233 | ; authentication settings. Then you can enable e.g. the internal RhodeCode auth |
|
216 | ; authentication settings. Then you can enable e.g. the internal RhodeCode auth | |
234 | ; module to log in again and fix the settings. |
|
217 | ; module to log in again and fix the settings. | |
235 | ; Available builtin plugin IDs (hash is part of the ID): |
|
218 | ; Available builtin plugin IDs (hash is part of the ID): | |
236 | ; egg:rhodecode-enterprise-ce#rhodecode |
|
219 | ; egg:rhodecode-enterprise-ce#rhodecode | |
237 | ; egg:rhodecode-enterprise-ce#pam |
|
220 | ; egg:rhodecode-enterprise-ce#pam | |
238 | ; egg:rhodecode-enterprise-ce#ldap |
|
221 | ; egg:rhodecode-enterprise-ce#ldap | |
239 | ; egg:rhodecode-enterprise-ce#jasig_cas |
|
222 | ; egg:rhodecode-enterprise-ce#jasig_cas | |
240 | ; egg:rhodecode-enterprise-ce#headers |
|
223 | ; egg:rhodecode-enterprise-ce#headers | |
241 | ; egg:rhodecode-enterprise-ce#crowd |
|
224 | ; egg:rhodecode-enterprise-ce#crowd | |
242 |
|
225 | |||
243 | #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode |
|
226 | #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode | |
244 |
|
227 | |||
245 | ; Flag to control loading of legacy plugins in py:/path format |
|
228 | ; Flag to control loading of legacy plugins in py:/path format | |
246 | auth_plugin.import_legacy_plugins = true |
|
229 | auth_plugin.import_legacy_plugins = true | |
247 |
|
230 | |||
248 | ; alternative return HTTP header for failed authentication. Default HTTP |
|
231 | ; alternative return HTTP header for failed authentication. Default HTTP | |
249 | ; response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
232 | ; response is 401 HTTPUnauthorized. Currently HG clients have troubles with | |
250 | ; handling that causing a series of failed authentication calls. |
|
233 | ; handling that causing a series of failed authentication calls. | |
251 | ; Set this variable to 403 to return HTTPForbidden, or any other HTTP code |
|
234 | ; Set this variable to 403 to return HTTPForbidden, or any other HTTP code | |
252 | ; This will be served instead of default 401 on bad authentication |
|
235 | ; This will be served instead of default 401 on bad authentication | |
253 | auth_ret_code = |
|
236 | auth_ret_code = | |
254 |
|
237 | |||
255 | ; use special detection method when serving auth_ret_code, instead of serving |
|
238 | ; use special detection method when serving auth_ret_code, instead of serving | |
256 | ; ret_code directly, use 401 initially (Which triggers credentials prompt) |
|
239 | ; ret_code directly, use 401 initially (Which triggers credentials prompt) | |
257 | ; and then serve auth_ret_code to clients |
|
240 | ; and then serve auth_ret_code to clients | |
258 | auth_ret_code_detection = false |
|
241 | auth_ret_code_detection = false | |
259 |
|
242 | |||
260 | ; locking return code. When repository is locked return this HTTP code. 2XX |
|
243 | ; locking return code. When repository is locked return this HTTP code. 2XX | |
261 | ; codes don't break the transactions while 4XX codes do |
|
244 | ; codes don't break the transactions while 4XX codes do | |
262 | lock_ret_code = 423 |
|
245 | lock_ret_code = 423 | |
263 |
|
246 | |||
264 | ; Filesystem location were repositories should be stored |
|
247 | ; Filesystem location were repositories should be stored | |
265 | repo_store.path = /var/opt/rhodecode_repo_store |
|
248 | repo_store.path = /var/opt/rhodecode_repo_store | |
266 |
|
249 | |||
267 | ; allows to setup custom hooks in settings page |
|
250 | ; allows to setup custom hooks in settings page | |
268 | allow_custom_hooks_settings = true |
|
251 | allow_custom_hooks_settings = true | |
269 |
|
252 | |||
270 | ; Generated license token required for EE edition license. |
|
253 | ; Generated license token required for EE edition license. | |
271 | ; New generated token value can be found in Admin > settings > license page. |
|
254 | ; New generated token value can be found in Admin > settings > license page. | |
272 | license_token = |
|
255 | license_token = | |
273 |
|
256 | |||
274 | ; This flag hides sensitive information on the license page such as token, and license data |
|
257 | ; This flag hides sensitive information on the license page such as token, and license data | |
275 | license.hide_license_info = false |
|
258 | license.hide_license_info = false | |
276 |
|
259 | |||
277 | ; supervisor connection uri, for managing supervisor and logs. |
|
260 | ; supervisor connection uri, for managing supervisor and logs. | |
278 | supervisor.uri = |
|
261 | supervisor.uri = | |
279 |
|
262 | |||
280 | ; supervisord group name/id we only want this RC instance to handle |
|
263 | ; supervisord group name/id we only want this RC instance to handle | |
281 | supervisor.group_id = dev |
|
264 | supervisor.group_id = dev | |
282 |
|
265 | |||
283 | ; Display extended labs settings |
|
266 | ; Display extended labs settings | |
284 | labs_settings_active = true |
|
267 | labs_settings_active = true | |
285 |
|
268 | |||
286 | ; Custom exception store path, defaults to TMPDIR |
|
269 | ; Custom exception store path, defaults to TMPDIR | |
287 | ; This is used to store exception from RhodeCode in shared directory |
|
270 | ; This is used to store exception from RhodeCode in shared directory | |
288 | #exception_tracker.store_path = |
|
271 | #exception_tracker.store_path = | |
289 |
|
272 | |||
290 | ; Send email with exception details when it happens |
|
273 | ; Send email with exception details when it happens | |
291 | #exception_tracker.send_email = false |
|
274 | #exception_tracker.send_email = false | |
292 |
|
275 | |||
293 | ; Comma separated list of recipients for exception emails, |
|
276 | ; Comma separated list of recipients for exception emails, | |
294 | ; e.g admin@rhodecode.com,devops@rhodecode.com |
|
277 | ; e.g admin@rhodecode.com,devops@rhodecode.com | |
295 | ; Can be left empty, then emails will be sent to ALL super-admins |
|
278 | ; Can be left empty, then emails will be sent to ALL super-admins | |
296 | #exception_tracker.send_email_recipients = |
|
279 | #exception_tracker.send_email_recipients = | |
297 |
|
280 | |||
298 | ; optional prefix to Add to email Subject |
|
281 | ; optional prefix to Add to email Subject | |
299 | #exception_tracker.email_prefix = [RHODECODE ERROR] |
|
282 | #exception_tracker.email_prefix = [RHODECODE ERROR] | |
300 |
|
283 | |||
301 | ; File store configuration. This is used to store and serve uploaded files |
|
284 | ; File store configuration. This is used to store and serve uploaded files | |
302 | file_store.enabled = true |
|
285 | file_store.enabled = true | |
303 |
|
286 | |||
304 | ; Storage backend, available options are: local |
|
287 | ; Storage backend, available options are: local | |
305 | file_store.backend = local |
|
288 | file_store.backend = local | |
306 |
|
289 | |||
307 | ; path to store the uploaded binaries and artifacts |
|
290 | ; path to store the uploaded binaries and artifacts | |
308 | file_store.storage_path = /var/opt/rhodecode_data/file_store |
|
291 | file_store.storage_path = /var/opt/rhodecode_data/file_store | |
309 |
|
292 | |||
310 | ; Uncomment and set this path to control settings for archive download cache. |
|
293 | ; Uncomment and set this path to control settings for archive download cache. | |
311 | ; Generated repo archives will be cached at this location |
|
294 | ; Generated repo archives will be cached at this location | |
312 | ; and served from the cache during subsequent requests for the same archive of |
|
295 | ; and served from the cache during subsequent requests for the same archive of | |
313 | ; the repository. This path is important to be shared across filesystems and with |
|
296 | ; the repository. This path is important to be shared across filesystems and with | |
314 | ; RhodeCode and vcsserver |
|
297 | ; RhodeCode and vcsserver | |
315 |
|
298 | |||
316 | ; Default is $cache_dir/archive_cache if not set |
|
299 | ; Default is $cache_dir/archive_cache if not set | |
317 | archive_cache.store_dir = /var/opt/rhodecode_data/tarballcache |
|
300 | archive_cache.store_dir = /var/opt/rhodecode_data/tarballcache | |
318 |
|
301 | |||
319 | ; The limit in GB sets how much data we cache before recycling last used, defaults to 10 gb |
|
302 | ; The limit in GB sets how much data we cache before recycling last used, defaults to 10 gb | |
320 | archive_cache.cache_size_gb = 10 |
|
303 | archive_cache.cache_size_gb = 10 | |
321 |
|
304 | |||
322 | ; By default cache uses sharding technique, this specifies how many shards are there |
|
305 | ; By default cache uses sharding technique, this specifies how many shards are there | |
323 | archive_cache.cache_shards = 4 |
|
306 | archive_cache.cache_shards = 4 | |
324 |
|
307 | |||
325 | ; ############# |
|
308 | ; ############# | |
326 | ; CELERY CONFIG |
|
309 | ; CELERY CONFIG | |
327 | ; ############# |
|
310 | ; ############# | |
328 |
|
311 | |||
329 | ; manually run celery: /path/to/celery worker --task-events --beat --app rhodecode.lib.celerylib.loader --scheduler rhodecode.lib.celerylib.scheduler.RcScheduler --loglevel DEBUG --ini /path/to/rhodecode.ini |
|
312 | ; manually run celery: /path/to/celery worker --task-events --beat --app rhodecode.lib.celerylib.loader --scheduler rhodecode.lib.celerylib.scheduler.RcScheduler --loglevel DEBUG --ini /path/to/rhodecode.ini | |
330 |
|
313 | |||
331 | use_celery = true |
|
314 | use_celery = true | |
332 |
|
315 | |||
333 | ; path to store schedule database |
|
316 | ; path to store schedule database | |
334 | #celerybeat-schedule.path = |
|
317 | #celerybeat-schedule.path = | |
335 |
|
318 | |||
336 | ; connection url to the message broker (default redis) |
|
319 | ; connection url to the message broker (default redis) | |
337 | celery.broker_url = redis://redis:6379/8 |
|
320 | celery.broker_url = redis://redis:6379/8 | |
338 |
|
321 | |||
339 | ; results backend to get results for (default redis) |
|
322 | ; results backend to get results for (default redis) | |
340 | celery.result_backend = redis://redis:6379/8 |
|
323 | celery.result_backend = redis://redis:6379/8 | |
341 |
|
324 | |||
342 | ; rabbitmq example |
|
325 | ; rabbitmq example | |
343 | #celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost |
|
326 | #celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost | |
344 |
|
327 | |||
345 | ; maximum tasks to execute before worker restart |
|
328 | ; maximum tasks to execute before worker restart | |
346 | celery.max_tasks_per_child = 20 |
|
329 | celery.max_tasks_per_child = 20 | |
347 |
|
330 | |||
348 | ; tasks will never be sent to the queue, but executed locally instead. |
|
331 | ; tasks will never be sent to the queue, but executed locally instead. | |
349 | celery.task_always_eager = false |
|
332 | celery.task_always_eager = false | |
350 |
|
333 | |||
351 | ; ############# |
|
334 | ; ############# | |
352 | ; DOGPILE CACHE |
|
335 | ; DOGPILE CACHE | |
353 | ; ############# |
|
336 | ; ############# | |
354 |
|
337 | |||
355 | ; Default cache dir for caches. Putting this into a ramdisk can boost performance. |
|
338 | ; Default cache dir for caches. Putting this into a ramdisk can boost performance. | |
356 | ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space |
|
339 | ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space | |
357 | cache_dir = /var/opt/rhodecode_data |
|
340 | cache_dir = /var/opt/rhodecode_data | |
358 |
|
341 | |||
359 | ; ********************************************* |
|
342 | ; ********************************************* | |
360 | ; `sql_cache_short` cache for heavy SQL queries |
|
343 | ; `sql_cache_short` cache for heavy SQL queries | |
361 | ; Only supported backend is `memory_lru` |
|
344 | ; Only supported backend is `memory_lru` | |
362 | ; ********************************************* |
|
345 | ; ********************************************* | |
363 | rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru |
|
346 | rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru | |
364 | rc_cache.sql_cache_short.expiration_time = 30 |
|
347 | rc_cache.sql_cache_short.expiration_time = 30 | |
365 |
|
348 | |||
366 |
|
349 | |||
367 | ; ***************************************************** |
|
350 | ; ***************************************************** | |
368 | ; `cache_repo_longterm` cache for repo object instances |
|
351 | ; `cache_repo_longterm` cache for repo object instances | |
369 | ; Only supported backend is `memory_lru` |
|
352 | ; Only supported backend is `memory_lru` | |
370 | ; ***************************************************** |
|
353 | ; ***************************************************** | |
371 | rc_cache.cache_repo_longterm.backend = dogpile.cache.rc.memory_lru |
|
354 | rc_cache.cache_repo_longterm.backend = dogpile.cache.rc.memory_lru | |
372 | ; by default we use 30 Days, cache is still invalidated on push |
|
355 | ; by default we use 30 Days, cache is still invalidated on push | |
373 | rc_cache.cache_repo_longterm.expiration_time = 2592000 |
|
356 | rc_cache.cache_repo_longterm.expiration_time = 2592000 | |
374 | ; max items in LRU cache, set to smaller number to save memory, and expire last used caches |
|
357 | ; max items in LRU cache, set to smaller number to save memory, and expire last used caches | |
375 | rc_cache.cache_repo_longterm.max_size = 10000 |
|
358 | rc_cache.cache_repo_longterm.max_size = 10000 | |
376 |
|
359 | |||
377 |
|
360 | |||
378 | ; ********************************************* |
|
361 | ; ********************************************* | |
379 | ; `cache_general` cache for general purpose use |
|
362 | ; `cache_general` cache for general purpose use | |
380 | ; for simplicity use rc.file_namespace backend, |
|
363 | ; for simplicity use rc.file_namespace backend, | |
381 | ; for performance and scale use rc.redis |
|
364 | ; for performance and scale use rc.redis | |
382 | ; ********************************************* |
|
365 | ; ********************************************* | |
383 | rc_cache.cache_general.backend = dogpile.cache.rc.file_namespace |
|
366 | rc_cache.cache_general.backend = dogpile.cache.rc.file_namespace | |
384 | rc_cache.cache_general.expiration_time = 43200 |
|
367 | rc_cache.cache_general.expiration_time = 43200 | |
385 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set |
|
368 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set | |
386 | #rc_cache.cache_general.arguments.filename = /tmp/cache_general_db |
|
369 | #rc_cache.cache_general.arguments.filename = /tmp/cache_general_db | |
387 |
|
370 | |||
388 | ; alternative `cache_general` redis backend with distributed lock |
|
371 | ; alternative `cache_general` redis backend with distributed lock | |
389 | #rc_cache.cache_general.backend = dogpile.cache.rc.redis |
|
372 | #rc_cache.cache_general.backend = dogpile.cache.rc.redis | |
390 | #rc_cache.cache_general.expiration_time = 300 |
|
373 | #rc_cache.cache_general.expiration_time = 300 | |
391 |
|
374 | |||
392 | ; redis_expiration_time needs to be greater then expiration_time |
|
375 | ; redis_expiration_time needs to be greater then expiration_time | |
393 | #rc_cache.cache_general.arguments.redis_expiration_time = 7200 |
|
376 | #rc_cache.cache_general.arguments.redis_expiration_time = 7200 | |
394 |
|
377 | |||
395 | #rc_cache.cache_general.arguments.host = localhost |
|
378 | #rc_cache.cache_general.arguments.host = localhost | |
396 | #rc_cache.cache_general.arguments.port = 6379 |
|
379 | #rc_cache.cache_general.arguments.port = 6379 | |
397 | #rc_cache.cache_general.arguments.db = 0 |
|
380 | #rc_cache.cache_general.arguments.db = 0 | |
398 | #rc_cache.cache_general.arguments.socket_timeout = 30 |
|
381 | #rc_cache.cache_general.arguments.socket_timeout = 30 | |
399 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends |
|
382 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends | |
400 | #rc_cache.cache_general.arguments.distributed_lock = true |
|
383 | #rc_cache.cache_general.arguments.distributed_lock = true | |
401 |
|
384 | |||
402 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen |
|
385 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen | |
403 | #rc_cache.cache_general.arguments.lock_auto_renewal = true |
|
386 | #rc_cache.cache_general.arguments.lock_auto_renewal = true | |
404 |
|
387 | |||
405 | ; ************************************************* |
|
388 | ; ************************************************* | |
406 | ; `cache_perms` cache for permission tree, auth TTL |
|
389 | ; `cache_perms` cache for permission tree, auth TTL | |
407 | ; for simplicity use rc.file_namespace backend, |
|
390 | ; for simplicity use rc.file_namespace backend, | |
408 | ; for performance and scale use rc.redis |
|
391 | ; for performance and scale use rc.redis | |
409 | ; ************************************************* |
|
392 | ; ************************************************* | |
410 | rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace |
|
393 | rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace | |
411 | rc_cache.cache_perms.expiration_time = 3600 |
|
394 | rc_cache.cache_perms.expiration_time = 3600 | |
412 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set |
|
395 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set | |
413 | #rc_cache.cache_perms.arguments.filename = /tmp/cache_perms_db |
|
396 | #rc_cache.cache_perms.arguments.filename = /tmp/cache_perms_db | |
414 |
|
397 | |||
415 | ; alternative `cache_perms` redis backend with distributed lock |
|
398 | ; alternative `cache_perms` redis backend with distributed lock | |
416 | #rc_cache.cache_perms.backend = dogpile.cache.rc.redis |
|
399 | #rc_cache.cache_perms.backend = dogpile.cache.rc.redis | |
417 | #rc_cache.cache_perms.expiration_time = 300 |
|
400 | #rc_cache.cache_perms.expiration_time = 300 | |
418 |
|
401 | |||
419 | ; redis_expiration_time needs to be greater then expiration_time |
|
402 | ; redis_expiration_time needs to be greater then expiration_time | |
420 | #rc_cache.cache_perms.arguments.redis_expiration_time = 7200 |
|
403 | #rc_cache.cache_perms.arguments.redis_expiration_time = 7200 | |
421 |
|
404 | |||
422 | #rc_cache.cache_perms.arguments.host = localhost |
|
405 | #rc_cache.cache_perms.arguments.host = localhost | |
423 | #rc_cache.cache_perms.arguments.port = 6379 |
|
406 | #rc_cache.cache_perms.arguments.port = 6379 | |
424 | #rc_cache.cache_perms.arguments.db = 0 |
|
407 | #rc_cache.cache_perms.arguments.db = 0 | |
425 | #rc_cache.cache_perms.arguments.socket_timeout = 30 |
|
408 | #rc_cache.cache_perms.arguments.socket_timeout = 30 | |
426 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends |
|
409 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends | |
427 | #rc_cache.cache_perms.arguments.distributed_lock = true |
|
410 | #rc_cache.cache_perms.arguments.distributed_lock = true | |
428 |
|
411 | |||
429 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen |
|
412 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen | |
430 | #rc_cache.cache_perms.arguments.lock_auto_renewal = true |
|
413 | #rc_cache.cache_perms.arguments.lock_auto_renewal = true | |
431 |
|
414 | |||
432 | ; *************************************************** |
|
415 | ; *************************************************** | |
433 | ; `cache_repo` cache for file tree, Readme, RSS FEEDS |
|
416 | ; `cache_repo` cache for file tree, Readme, RSS FEEDS | |
434 | ; for simplicity use rc.file_namespace backend, |
|
417 | ; for simplicity use rc.file_namespace backend, | |
435 | ; for performance and scale use rc.redis |
|
418 | ; for performance and scale use rc.redis | |
436 | ; *************************************************** |
|
419 | ; *************************************************** | |
437 | rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace |
|
420 | rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace | |
438 | rc_cache.cache_repo.expiration_time = 2592000 |
|
421 | rc_cache.cache_repo.expiration_time = 2592000 | |
439 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set |
|
422 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set | |
440 | #rc_cache.cache_repo.arguments.filename = /tmp/cache_repo_db |
|
423 | #rc_cache.cache_repo.arguments.filename = /tmp/cache_repo_db | |
441 |
|
424 | |||
442 | ; alternative `cache_repo` redis backend with distributed lock |
|
425 | ; alternative `cache_repo` redis backend with distributed lock | |
443 | #rc_cache.cache_repo.backend = dogpile.cache.rc.redis |
|
426 | #rc_cache.cache_repo.backend = dogpile.cache.rc.redis | |
444 | #rc_cache.cache_repo.expiration_time = 2592000 |
|
427 | #rc_cache.cache_repo.expiration_time = 2592000 | |
445 |
|
428 | |||
446 | ; redis_expiration_time needs to be greater then expiration_time |
|
429 | ; redis_expiration_time needs to be greater then expiration_time | |
447 | #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400 |
|
430 | #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400 | |
448 |
|
431 | |||
449 | #rc_cache.cache_repo.arguments.host = localhost |
|
432 | #rc_cache.cache_repo.arguments.host = localhost | |
450 | #rc_cache.cache_repo.arguments.port = 6379 |
|
433 | #rc_cache.cache_repo.arguments.port = 6379 | |
451 | #rc_cache.cache_repo.arguments.db = 1 |
|
434 | #rc_cache.cache_repo.arguments.db = 1 | |
452 | #rc_cache.cache_repo.arguments.socket_timeout = 30 |
|
435 | #rc_cache.cache_repo.arguments.socket_timeout = 30 | |
453 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends |
|
436 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends | |
454 | #rc_cache.cache_repo.arguments.distributed_lock = true |
|
437 | #rc_cache.cache_repo.arguments.distributed_lock = true | |
455 |
|
438 | |||
456 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen |
|
439 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen | |
457 | #rc_cache.cache_repo.arguments.lock_auto_renewal = true |
|
440 | #rc_cache.cache_repo.arguments.lock_auto_renewal = true | |
458 |
|
441 | |||
459 | ; ############## |
|
442 | ; ############## | |
460 | ; BEAKER SESSION |
|
443 | ; BEAKER SESSION | |
461 | ; ############## |
|
444 | ; ############## | |
462 |
|
445 | |||
463 | ; beaker.session.type is type of storage options for the logged users sessions. Current allowed |
|
446 | ; beaker.session.type is type of storage options for the logged users sessions. Current allowed | |
464 | ; types are file, ext:redis, ext:database, ext:memcached |
|
447 | ; types are file, ext:redis, ext:database, ext:memcached | |
465 | ; Fastest ones are ext:redis and ext:database, DO NOT use memory type for session |
|
448 | ; Fastest ones are ext:redis and ext:database, DO NOT use memory type for session | |
466 | #beaker.session.type = file |
|
449 | #beaker.session.type = file | |
467 | #beaker.session.data_dir = %(here)s/data/sessions |
|
450 | #beaker.session.data_dir = %(here)s/data/sessions | |
468 |
|
451 | |||
469 | ; Redis based sessions |
|
452 | ; Redis based sessions | |
470 | beaker.session.type = ext:redis |
|
453 | beaker.session.type = ext:redis | |
471 | beaker.session.url = redis://redis:6379/2 |
|
454 | beaker.session.url = redis://redis:6379/2 | |
472 |
|
455 | |||
473 | ; DB based session, fast, and allows easy management over logged in users |
|
456 | ; DB based session, fast, and allows easy management over logged in users | |
474 | #beaker.session.type = ext:database |
|
457 | #beaker.session.type = ext:database | |
475 | #beaker.session.table_name = db_session |
|
458 | #beaker.session.table_name = db_session | |
476 | #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode |
|
459 | #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode | |
477 | #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode |
|
460 | #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode | |
478 | #beaker.session.sa.pool_recycle = 3600 |
|
461 | #beaker.session.sa.pool_recycle = 3600 | |
479 | #beaker.session.sa.echo = false |
|
462 | #beaker.session.sa.echo = false | |
480 |
|
463 | |||
481 | beaker.session.key = rhodecode |
|
464 | beaker.session.key = rhodecode | |
482 | beaker.session.secret = develop-rc-uytcxaz |
|
465 | beaker.session.secret = develop-rc-uytcxaz | |
483 | beaker.session.lock_dir = /data_ramdisk/lock |
|
466 | beaker.session.lock_dir = /data_ramdisk/lock | |
484 |
|
467 | |||
485 | ; Secure encrypted cookie. Requires AES and AES python libraries |
|
468 | ; Secure encrypted cookie. Requires AES and AES python libraries | |
486 | ; you must disable beaker.session.secret to use this |
|
469 | ; you must disable beaker.session.secret to use this | |
487 | #beaker.session.encrypt_key = key_for_encryption |
|
470 | #beaker.session.encrypt_key = key_for_encryption | |
488 | #beaker.session.validate_key = validation_key |
|
471 | #beaker.session.validate_key = validation_key | |
489 |
|
472 | |||
490 | ; Sets session as invalid (also logging out user) if it haven not been |
|
473 | ; Sets session as invalid (also logging out user) if it haven not been | |
491 | ; accessed for given amount of time in seconds |
|
474 | ; accessed for given amount of time in seconds | |
492 | beaker.session.timeout = 2592000 |
|
475 | beaker.session.timeout = 2592000 | |
493 | beaker.session.httponly = true |
|
476 | beaker.session.httponly = true | |
494 |
|
477 | |||
495 | ; Path to use for the cookie. Set to prefix if you use prefix middleware |
|
478 | ; Path to use for the cookie. Set to prefix if you use prefix middleware | |
496 | #beaker.session.cookie_path = /custom_prefix |
|
479 | #beaker.session.cookie_path = /custom_prefix | |
497 |
|
480 | |||
498 | ; Set https secure cookie |
|
481 | ; Set https secure cookie | |
499 | beaker.session.secure = false |
|
482 | beaker.session.secure = false | |
500 |
|
483 | |||
501 | ; default cookie expiration time in seconds, set to `true` to set expire |
|
484 | ; default cookie expiration time in seconds, set to `true` to set expire | |
502 | ; at browser close |
|
485 | ; at browser close | |
503 | #beaker.session.cookie_expires = 3600 |
|
486 | #beaker.session.cookie_expires = 3600 | |
504 |
|
487 | |||
505 | ; ############################# |
|
488 | ; ############################# | |
506 | ; SEARCH INDEXING CONFIGURATION |
|
489 | ; SEARCH INDEXING CONFIGURATION | |
507 | ; ############################# |
|
490 | ; ############################# | |
508 |
|
491 | |||
509 | ; Full text search indexer is available in rhodecode-tools under |
|
492 | ; Full text search indexer is available in rhodecode-tools under | |
510 | ; `rhodecode-tools index` command |
|
493 | ; `rhodecode-tools index` command | |
511 |
|
494 | |||
512 | ; WHOOSH Backend, doesn't require additional services to run |
|
495 | ; WHOOSH Backend, doesn't require additional services to run | |
513 | ; it works good with few dozen repos |
|
496 | ; it works good with few dozen repos | |
514 | search.module = rhodecode.lib.index.whoosh |
|
497 | search.module = rhodecode.lib.index.whoosh | |
515 | search.location = %(here)s/data/index |
|
498 | search.location = %(here)s/data/index | |
516 |
|
499 | |||
517 | ; #################### |
|
500 | ; #################### | |
518 | ; CHANNELSTREAM CONFIG |
|
501 | ; CHANNELSTREAM CONFIG | |
519 | ; #################### |
|
502 | ; #################### | |
520 |
|
503 | |||
521 | ; channelstream enables persistent connections and live notification |
|
504 | ; channelstream enables persistent connections and live notification | |
522 | ; in the system. It's also used by the chat system |
|
505 | ; in the system. It's also used by the chat system | |
523 |
|
506 | |||
524 | channelstream.enabled = true |
|
507 | channelstream.enabled = true | |
525 |
|
508 | |||
526 | ; server address for channelstream server on the backend |
|
509 | ; server address for channelstream server on the backend | |
527 | channelstream.server = channelstream:9800 |
|
510 | channelstream.server = channelstream:9800 | |
528 |
|
511 | |||
529 | ; location of the channelstream server from outside world |
|
512 | ; location of the channelstream server from outside world | |
530 | ; use ws:// for http or wss:// for https. This address needs to be handled |
|
513 | ; use ws:// for http or wss:// for https. This address needs to be handled | |
531 | ; by external HTTP server such as Nginx or Apache |
|
514 | ; by external HTTP server such as Nginx or Apache | |
532 | ; see Nginx/Apache configuration examples in our docs |
|
515 | ; see Nginx/Apache configuration examples in our docs | |
533 | channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream |
|
516 | channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream | |
534 | channelstream.secret = ENV_GENERATED |
|
517 | channelstream.secret = ENV_GENERATED | |
535 | channelstream.history.location = /var/opt/rhodecode_data/channelstream_history |
|
518 | channelstream.history.location = /var/opt/rhodecode_data/channelstream_history | |
536 |
|
519 | |||
537 | ; Internal application path that Javascript uses to connect into. |
|
520 | ; Internal application path that Javascript uses to connect into. | |
538 | ; If you use proxy-prefix the prefix should be added before /_channelstream |
|
521 | ; If you use proxy-prefix the prefix should be added before /_channelstream | |
539 | channelstream.proxy_path = /_channelstream |
|
522 | channelstream.proxy_path = /_channelstream | |
540 |
|
523 | |||
541 |
|
524 | |||
542 | ; ############################## |
|
525 | ; ############################## | |
543 | ; MAIN RHODECODE DATABASE CONFIG |
|
526 | ; MAIN RHODECODE DATABASE CONFIG | |
544 | ; ############################## |
|
527 | ; ############################## | |
545 |
|
528 | |||
546 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 |
|
529 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 | |
547 | #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode |
|
530 | #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode | |
548 | #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode?charset=utf8 |
|
531 | #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode?charset=utf8 | |
549 | ; pymysql is an alternative driver for MySQL, use in case of problems with default one |
|
532 | ; pymysql is an alternative driver for MySQL, use in case of problems with default one | |
550 | #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode |
|
533 | #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode | |
551 |
|
534 | |||
552 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 |
|
535 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 | |
553 |
|
536 | |||
554 | ; see sqlalchemy docs for other advanced settings |
|
537 | ; see sqlalchemy docs for other advanced settings | |
555 | ; print the sql statements to output |
|
538 | ; print the sql statements to output | |
556 | sqlalchemy.db1.echo = false |
|
539 | sqlalchemy.db1.echo = false | |
557 |
|
540 | |||
558 | ; recycle the connections after this amount of seconds |
|
541 | ; recycle the connections after this amount of seconds | |
559 | sqlalchemy.db1.pool_recycle = 3600 |
|
542 | sqlalchemy.db1.pool_recycle = 3600 | |
560 |
|
543 | |||
561 | ; the number of connections to keep open inside the connection pool. |
|
544 | ; the number of connections to keep open inside the connection pool. | |
562 | ; 0 indicates no limit |
|
545 | ; 0 indicates no limit | |
563 | ; the general calculus with gevent is: |
|
546 | ; the general calculus with gevent is: | |
564 | ; if your system allows 500 concurrent greenlets (max_connections) that all do database access, |
|
547 | ; if your system allows 500 concurrent greenlets (max_connections) that all do database access, | |
565 | ; then increase pool size + max overflow so that they add up to 500. |
|
548 | ; then increase pool size + max overflow so that they add up to 500. | |
566 | #sqlalchemy.db1.pool_size = 5 |
|
549 | #sqlalchemy.db1.pool_size = 5 | |
567 |
|
550 | |||
568 | ; The number of connections to allow in connection pool "overflow", that is |
|
551 | ; The number of connections to allow in connection pool "overflow", that is | |
569 | ; connections that can be opened above and beyond the pool_size setting, |
|
552 | ; connections that can be opened above and beyond the pool_size setting, | |
570 | ; which defaults to five. |
|
553 | ; which defaults to five. | |
571 | #sqlalchemy.db1.max_overflow = 10 |
|
554 | #sqlalchemy.db1.max_overflow = 10 | |
572 |
|
555 | |||
573 | ; Connection check ping, used to detect broken database connections |
|
556 | ; Connection check ping, used to detect broken database connections | |
574 | ; could be enabled to better handle cases if MySQL has gone away errors |
|
557 | ; could be enabled to better handle cases if MySQL has gone away errors | |
575 | #sqlalchemy.db1.ping_connection = true |
|
558 | #sqlalchemy.db1.ping_connection = true | |
576 |
|
559 | |||
577 | ; ########## |
|
560 | ; ########## | |
578 | ; VCS CONFIG |
|
561 | ; VCS CONFIG | |
579 | ; ########## |
|
562 | ; ########## | |
580 | vcs.server.enable = true |
|
563 | vcs.server.enable = true | |
581 | vcs.server = vcsserver:10010 |
|
564 | vcs.server = vcsserver:10010 | |
582 |
|
565 | |||
583 | ; Web server connectivity protocol, responsible for web based VCS operations |
|
566 | ; Web server connectivity protocol, responsible for web based VCS operations | |
584 | ; Available protocols are: |
|
567 | ; Available protocols are: | |
585 | ; `http` - use http-rpc backend (default) |
|
568 | ; `http` - use http-rpc backend (default) | |
586 | vcs.server.protocol = http |
|
569 | vcs.server.protocol = http | |
587 |
|
570 | |||
588 | ; Push/Pull operations protocol, available options are: |
|
571 | ; Push/Pull operations protocol, available options are: | |
589 | ; `http` - use http-rpc backend (default) |
|
572 | ; `http` - use http-rpc backend (default) | |
590 | vcs.scm_app_implementation = http |
|
573 | vcs.scm_app_implementation = http | |
591 |
|
574 | |||
592 | ; Push/Pull operations hooks protocol, available options are: |
|
575 | ; Push/Pull operations hooks protocol, available options are: | |
593 | ; `http` - use http-rpc backend (default) |
|
576 | ; `http` - use http-rpc backend (default) | |
594 | ; `celery` - use celery based hooks |
|
577 | ; `celery` - use celery based hooks | |
595 | vcs.hooks.protocol = http |
|
578 | vcs.hooks.protocol = http | |
596 |
|
579 | |||
597 | ; Host on which this instance is listening for hooks. vcsserver will call this host to pull/push hooks so it should be |
|
580 | ; Host on which this instance is listening for hooks. vcsserver will call this host to pull/push hooks so it should be | |
598 | ; accessible via network. |
|
581 | ; accessible via network. | |
599 | ; Use vcs.hooks.host = "*" to bind to current hostname (for Docker) |
|
582 | ; Use vcs.hooks.host = "*" to bind to current hostname (for Docker) | |
600 | vcs.hooks.host = * |
|
583 | vcs.hooks.host = * | |
601 |
|
584 | |||
602 | ; Start VCSServer with this instance as a subprocess, useful for development |
|
585 | ; Start VCSServer with this instance as a subprocess, useful for development | |
603 | vcs.start_server = false |
|
586 | vcs.start_server = false | |
604 |
|
587 | |||
605 | ; List of enabled VCS backends, available options are: |
|
588 | ; List of enabled VCS backends, available options are: | |
606 | ; `hg` - mercurial |
|
589 | ; `hg` - mercurial | |
607 | ; `git` - git |
|
590 | ; `git` - git | |
608 | ; `svn` - subversion |
|
591 | ; `svn` - subversion | |
609 | vcs.backends = hg, git, svn |
|
592 | vcs.backends = hg, git, svn | |
610 |
|
593 | |||
611 | ; Wait this number of seconds before killing connection to the vcsserver |
|
594 | ; Wait this number of seconds before killing connection to the vcsserver | |
612 | vcs.connection_timeout = 3600 |
|
595 | vcs.connection_timeout = 3600 | |
613 |
|
596 | |||
614 | ; Cache flag to cache vcsserver remote calls locally |
|
597 | ; Cache flag to cache vcsserver remote calls locally | |
615 | ; It uses cache_region `cache_repo` |
|
598 | ; It uses cache_region `cache_repo` | |
616 | vcs.methods.cache = true |
|
599 | vcs.methods.cache = true | |
617 |
|
600 | |||
618 | ; #################################################### |
|
601 | ; #################################################### | |
619 | ; Subversion proxy support (mod_dav_svn) |
|
602 | ; Subversion proxy support (mod_dav_svn) | |
620 | ; Maps RhodeCode repo groups into SVN paths for Apache |
|
603 | ; Maps RhodeCode repo groups into SVN paths for Apache | |
621 | ; #################################################### |
|
604 | ; #################################################### | |
622 |
|
605 | |||
623 | ; Compatibility version when creating SVN repositories. Defaults to newest version when commented out. |
|
606 | ; Compatibility version when creating SVN repositories. Defaults to newest version when commented out. | |
624 | ; Set a numeric version for your current SVN e.g 1.8, or 1.12 |
|
607 | ; Set a numeric version for your current SVN e.g 1.8, or 1.12 | |
625 | ; Legacy available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible |
|
608 | ; Legacy available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible | |
626 | #vcs.svn.compatible_version = 1.8 |
|
609 | #vcs.svn.compatible_version = 1.8 | |
627 |
|
610 | |||
628 | ; Enable SVN proxy of requests over HTTP |
|
611 | ; Enable SVN proxy of requests over HTTP | |
629 | vcs.svn.proxy.enabled = true |
|
612 | vcs.svn.proxy.enabled = true | |
630 |
|
613 | |||
631 | ; host to connect to running SVN subsystem |
|
614 | ; host to connect to running SVN subsystem | |
632 | vcs.svn.proxy.host = http://svn:8090 |
|
615 | vcs.svn.proxy.host = http://svn:8090 | |
633 |
|
616 | |||
634 | ; Enable or disable the config file generation. |
|
617 | ; Enable or disable the config file generation. | |
635 | svn.proxy.generate_config = true |
|
618 | svn.proxy.generate_config = true | |
636 |
|
619 | |||
637 | ; Generate config file with `SVNListParentPath` set to `On`. |
|
620 | ; Generate config file with `SVNListParentPath` set to `On`. | |
638 | svn.proxy.list_parent_path = true |
|
621 | svn.proxy.list_parent_path = true | |
639 |
|
622 | |||
640 | ; Set location and file name of generated config file. |
|
623 | ; Set location and file name of generated config file. | |
641 | svn.proxy.config_file_path = /etc/rhodecode/conf/svn/mod_dav_svn.conf |
|
624 | svn.proxy.config_file_path = /etc/rhodecode/conf/svn/mod_dav_svn.conf | |
642 |
|
625 | |||
643 | ; alternative mod_dav config template. This needs to be a valid mako template |
|
626 | ; alternative mod_dav config template. This needs to be a valid mako template | |
644 | ; Example template can be found in the source code: |
|
627 | ; Example template can be found in the source code: | |
645 | ; rhodecode/apps/svn_support/templates/mod-dav-svn.conf.mako |
|
628 | ; rhodecode/apps/svn_support/templates/mod-dav-svn.conf.mako | |
646 | #svn.proxy.config_template = ~/.rccontrol/enterprise-1/custom_svn_conf.mako |
|
629 | #svn.proxy.config_template = ~/.rccontrol/enterprise-1/custom_svn_conf.mako | |
647 |
|
630 | |||
648 | ; Used as a prefix to the `Location` block in the generated config file. |
|
631 | ; Used as a prefix to the `Location` block in the generated config file. | |
649 | ; In most cases it should be set to `/`. |
|
632 | ; In most cases it should be set to `/`. | |
650 | svn.proxy.location_root = / |
|
633 | svn.proxy.location_root = / | |
651 |
|
634 | |||
652 | ; Command to reload the mod dav svn configuration on change. |
|
635 | ; Command to reload the mod dav svn configuration on change. | |
653 | ; Example: `/etc/init.d/apache2 reload` or /home/USER/apache_reload.sh |
|
636 | ; Example: `/etc/init.d/apache2 reload` or /home/USER/apache_reload.sh | |
654 | ; Make sure user who runs RhodeCode process is allowed to reload Apache |
|
637 | ; Make sure user who runs RhodeCode process is allowed to reload Apache | |
655 | #svn.proxy.reload_cmd = /etc/init.d/apache2 reload |
|
638 | #svn.proxy.reload_cmd = /etc/init.d/apache2 reload | |
656 |
|
639 | |||
657 | ; If the timeout expires before the reload command finishes, the command will |
|
640 | ; If the timeout expires before the reload command finishes, the command will | |
658 | ; be killed. Setting it to zero means no timeout. Defaults to 10 seconds. |
|
641 | ; be killed. Setting it to zero means no timeout. Defaults to 10 seconds. | |
659 | #svn.proxy.reload_timeout = 10 |
|
642 | #svn.proxy.reload_timeout = 10 | |
660 |
|
643 | |||
661 | ; #################### |
|
644 | ; #################### | |
662 | ; SSH Support Settings |
|
645 | ; SSH Support Settings | |
663 | ; #################### |
|
646 | ; #################### | |
664 |
|
647 | |||
665 | ; Defines if a custom authorized_keys file should be created and written on |
|
648 | ; Defines if a custom authorized_keys file should be created and written on | |
666 | ; any change user ssh keys. Setting this to false also disables possibility |
|
649 | ; any change user ssh keys. Setting this to false also disables possibility | |
667 | ; of adding SSH keys by users from web interface. Super admins can still |
|
650 | ; of adding SSH keys by users from web interface. Super admins can still | |
668 | ; manage SSH Keys. |
|
651 | ; manage SSH Keys. | |
669 | ssh.generate_authorized_keyfile = true |
|
652 | ssh.generate_authorized_keyfile = true | |
670 |
|
653 | |||
671 | ; Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding` |
|
654 | ; Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding` | |
672 | # ssh.authorized_keys_ssh_opts = |
|
655 | # ssh.authorized_keys_ssh_opts = | |
673 |
|
656 | |||
674 | ; Path to the authorized_keys file where the generate entries are placed. |
|
657 | ; Path to the authorized_keys file where the generate entries are placed. | |
675 | ; It is possible to have multiple key files specified in `sshd_config` e.g. |
|
658 | ; It is possible to have multiple key files specified in `sshd_config` e.g. | |
676 | ; AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode |
|
659 | ; AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode | |
677 | ssh.authorized_keys_file_path = /etc/rhodecode/conf/ssh/authorized_keys_rhodecode |
|
660 | ssh.authorized_keys_file_path = /etc/rhodecode/conf/ssh/authorized_keys_rhodecode | |
678 |
|
661 | |||
679 | ; Command to execute the SSH wrapper. The binary is available in the |
|
662 | ; Command to execute the SSH wrapper. The binary is available in the | |
680 | ; RhodeCode installation directory. |
|
663 | ; RhodeCode installation directory. | |
681 | ; legacy: /usr/local/bin/rhodecode_bin/bin/rc-ssh-wrapper |
|
664 | ; legacy: /usr/local/bin/rhodecode_bin/bin/rc-ssh-wrapper | |
682 | ; new rewrite: /usr/local/bin/rhodecode_bin/bin/rc-ssh-wrapper-v2 |
|
665 | ; new rewrite: /usr/local/bin/rhodecode_bin/bin/rc-ssh-wrapper-v2 | |
683 | ssh.wrapper_cmd = /usr/local/bin/rhodecode_bin/bin/rc-ssh-wrapper |
|
666 | ssh.wrapper_cmd = /usr/local/bin/rhodecode_bin/bin/rc-ssh-wrapper | |
684 |
|
667 | |||
685 | ; Allow shell when executing the ssh-wrapper command |
|
668 | ; Allow shell when executing the ssh-wrapper command | |
686 | ssh.wrapper_cmd_allow_shell = false |
|
669 | ssh.wrapper_cmd_allow_shell = false | |
687 |
|
670 | |||
688 | ; Enables logging, and detailed output send back to the client during SSH |
|
671 | ; Enables logging, and detailed output send back to the client during SSH | |
689 | ; operations. Useful for debugging, shouldn't be used in production. |
|
672 | ; operations. Useful for debugging, shouldn't be used in production. | |
690 | ssh.enable_debug_logging = true |
|
673 | ssh.enable_debug_logging = true | |
691 |
|
674 | |||
692 | ; Paths to binary executable, by default they are the names, but we can |
|
675 | ; Paths to binary executable, by default they are the names, but we can | |
693 | ; override them if we want to use a custom one |
|
676 | ; override them if we want to use a custom one | |
694 | ssh.executable.hg = /usr/local/bin/rhodecode_bin/vcs_bin/hg |
|
677 | ssh.executable.hg = /usr/local/bin/rhodecode_bin/vcs_bin/hg | |
695 | ssh.executable.git = /usr/local/bin/rhodecode_bin/vcs_bin/git |
|
678 | ssh.executable.git = /usr/local/bin/rhodecode_bin/vcs_bin/git | |
696 | ssh.executable.svn = /usr/local/bin/rhodecode_bin/vcs_bin/svnserve |
|
679 | ssh.executable.svn = /usr/local/bin/rhodecode_bin/vcs_bin/svnserve | |
697 |
|
680 | |||
698 | ; Enables SSH key generator web interface. Disabling this still allows users |
|
681 | ; Enables SSH key generator web interface. Disabling this still allows users | |
699 | ; to add their own keys. |
|
682 | ; to add their own keys. | |
700 | ssh.enable_ui_key_generator = true |
|
683 | ssh.enable_ui_key_generator = true | |
701 |
|
684 | |||
702 | ; Statsd client config, this is used to send metrics to statsd |
|
685 | ; Statsd client config, this is used to send metrics to statsd | |
703 | ; We recommend setting statsd_exported and scrape them using Prometheus |
|
686 | ; We recommend setting statsd_exported and scrape them using Prometheus | |
704 | #statsd.enabled = false |
|
687 | #statsd.enabled = false | |
705 | #statsd.statsd_host = 0.0.0.0 |
|
688 | #statsd.statsd_host = 0.0.0.0 | |
706 | #statsd.statsd_port = 8125 |
|
689 | #statsd.statsd_port = 8125 | |
707 | #statsd.statsd_prefix = |
|
690 | #statsd.statsd_prefix = | |
708 | #statsd.statsd_ipv6 = false |
|
691 | #statsd.statsd_ipv6 = false | |
709 |
|
692 | |||
710 | ; configure logging automatically at server startup set to false |
|
693 | ; configure logging automatically at server startup set to false | |
711 | ; to use the below custom logging config. |
|
694 | ; to use the below custom logging config. | |
712 | ; RC_LOGGING_FORMATTER |
|
695 | ; RC_LOGGING_FORMATTER | |
713 | ; RC_LOGGING_LEVEL |
|
696 | ; RC_LOGGING_LEVEL | |
714 | ; env variables can control the settings for logging in case of autoconfigure |
|
697 | ; env variables can control the settings for logging in case of autoconfigure | |
715 |
|
698 | |||
716 | #logging.autoconfigure = true |
|
699 | #logging.autoconfigure = true | |
717 |
|
700 | |||
718 | ; specify your own custom logging config file to configure logging |
|
701 | ; specify your own custom logging config file to configure logging | |
719 | #logging.logging_conf_file = /path/to/custom_logging.ini |
|
702 | #logging.logging_conf_file = /path/to/custom_logging.ini | |
720 |
|
703 | |||
721 | ; Dummy marker to add new entries after. |
|
704 | ; Dummy marker to add new entries after. | |
722 | ; Add any custom entries below. Please don't remove this marker. |
|
705 | ; Add any custom entries below. Please don't remove this marker. | |
723 | custom.conf = 1 |
|
706 | custom.conf = 1 | |
724 |
|
707 | |||
725 |
|
708 | |||
726 | ; ##################### |
|
709 | ; ##################### | |
727 | ; LOGGING CONFIGURATION |
|
710 | ; LOGGING CONFIGURATION | |
728 | ; ##################### |
|
711 | ; ##################### | |
729 |
|
712 | |||
730 | [loggers] |
|
713 | [loggers] | |
731 | keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper |
|
714 | keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper | |
732 |
|
715 | |||
733 | [handlers] |
|
716 | [handlers] | |
734 | keys = console, console_sql |
|
717 | keys = console, console_sql | |
735 |
|
718 | |||
736 | [formatters] |
|
719 | [formatters] | |
737 | keys = generic, json, color_formatter, color_formatter_sql |
|
720 | keys = generic, json, color_formatter, color_formatter_sql | |
738 |
|
721 | |||
739 | ; ####### |
|
722 | ; ####### | |
740 | ; LOGGERS |
|
723 | ; LOGGERS | |
741 | ; ####### |
|
724 | ; ####### | |
742 | [logger_root] |
|
725 | [logger_root] | |
743 | level = NOTSET |
|
726 | level = NOTSET | |
744 | handlers = console |
|
727 | handlers = console | |
745 |
|
728 | |||
746 | [logger_sqlalchemy] |
|
729 | [logger_sqlalchemy] | |
747 | level = INFO |
|
730 | level = INFO | |
748 | handlers = console_sql |
|
731 | handlers = console_sql | |
749 | qualname = sqlalchemy.engine |
|
732 | qualname = sqlalchemy.engine | |
750 | propagate = 0 |
|
733 | propagate = 0 | |
751 |
|
734 | |||
752 | [logger_beaker] |
|
735 | [logger_beaker] | |
753 | level = DEBUG |
|
736 | level = DEBUG | |
754 | handlers = |
|
737 | handlers = | |
755 | qualname = beaker.container |
|
738 | qualname = beaker.container | |
756 | propagate = 1 |
|
739 | propagate = 1 | |
757 |
|
740 | |||
758 | [logger_rhodecode] |
|
741 | [logger_rhodecode] | |
759 | level = DEBUG |
|
742 | level = DEBUG | |
760 | handlers = |
|
743 | handlers = | |
761 | qualname = rhodecode |
|
744 | qualname = rhodecode | |
762 | propagate = 1 |
|
745 | propagate = 1 | |
763 |
|
746 | |||
764 | [logger_ssh_wrapper] |
|
747 | [logger_ssh_wrapper] | |
765 | level = DEBUG |
|
748 | level = DEBUG | |
766 | handlers = |
|
749 | handlers = | |
767 | qualname = ssh_wrapper |
|
750 | qualname = ssh_wrapper | |
768 | propagate = 1 |
|
751 | propagate = 1 | |
769 |
|
752 | |||
770 | [logger_celery] |
|
753 | [logger_celery] | |
771 | level = DEBUG |
|
754 | level = DEBUG | |
772 | handlers = |
|
755 | handlers = | |
773 | qualname = celery |
|
756 | qualname = celery | |
774 |
|
757 | |||
775 |
|
758 | |||
776 | ; ######## |
|
759 | ; ######## | |
777 | ; HANDLERS |
|
760 | ; HANDLERS | |
778 | ; ######## |
|
761 | ; ######## | |
779 |
|
762 | |||
780 | [handler_console] |
|
763 | [handler_console] | |
781 | class = StreamHandler |
|
764 | class = StreamHandler | |
782 | args = (sys.stderr, ) |
|
765 | args = (sys.stderr, ) | |
783 | level = DEBUG |
|
766 | level = DEBUG | |
784 | ; To enable JSON formatted logs replace 'generic/color_formatter' with 'json' |
|
767 | ; To enable JSON formatted logs replace 'generic/color_formatter' with 'json' | |
785 | ; This allows sending properly formatted logs to grafana loki or elasticsearch |
|
768 | ; This allows sending properly formatted logs to grafana loki or elasticsearch | |
786 | formatter = color_formatter |
|
769 | formatter = color_formatter | |
787 |
|
770 | |||
788 | [handler_console_sql] |
|
771 | [handler_console_sql] | |
789 | ; "level = DEBUG" logs SQL queries and results. |
|
772 | ; "level = DEBUG" logs SQL queries and results. | |
790 | ; "level = INFO" logs SQL queries. |
|
773 | ; "level = INFO" logs SQL queries. | |
791 | ; "level = WARN" logs neither. (Recommended for production systems.) |
|
774 | ; "level = WARN" logs neither. (Recommended for production systems.) | |
792 | class = StreamHandler |
|
775 | class = StreamHandler | |
793 | args = (sys.stderr, ) |
|
776 | args = (sys.stderr, ) | |
794 | level = WARN |
|
777 | level = WARN | |
795 | ; To enable JSON formatted logs replace 'generic/color_formatter_sql' with 'json' |
|
778 | ; To enable JSON formatted logs replace 'generic/color_formatter_sql' with 'json' | |
796 | ; This allows sending properly formatted logs to grafana loki or elasticsearch |
|
779 | ; This allows sending properly formatted logs to grafana loki or elasticsearch | |
797 | formatter = color_formatter_sql |
|
780 | formatter = color_formatter_sql | |
798 |
|
781 | |||
799 | ; ########## |
|
782 | ; ########## | |
800 | ; FORMATTERS |
|
783 | ; FORMATTERS | |
801 | ; ########## |
|
784 | ; ########## | |
802 |
|
785 | |||
803 | [formatter_generic] |
|
786 | [formatter_generic] | |
804 | class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter |
|
787 | class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter | |
805 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s |
|
788 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s | |
806 | datefmt = %Y-%m-%d %H:%M:%S |
|
789 | datefmt = %Y-%m-%d %H:%M:%S | |
807 |
|
790 | |||
808 | [formatter_color_formatter] |
|
791 | [formatter_color_formatter] | |
809 | class = rhodecode.lib.logging_formatter.ColorFormatter |
|
792 | class = rhodecode.lib.logging_formatter.ColorFormatter | |
810 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s |
|
793 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s | |
811 | datefmt = %Y-%m-%d %H:%M:%S |
|
794 | datefmt = %Y-%m-%d %H:%M:%S | |
812 |
|
795 | |||
813 | [formatter_color_formatter_sql] |
|
796 | [formatter_color_formatter_sql] | |
814 | class = rhodecode.lib.logging_formatter.ColorFormatterSql |
|
797 | class = rhodecode.lib.logging_formatter.ColorFormatterSql | |
815 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s |
|
798 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s | |
816 | datefmt = %Y-%m-%d %H:%M:%S |
|
799 | datefmt = %Y-%m-%d %H:%M:%S | |
817 |
|
800 | |||
818 | [formatter_json] |
|
801 | [formatter_json] | |
819 | format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s |
|
802 | format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s | |
820 | class = rhodecode.lib._vendor.jsonlogger.JsonFormatter |
|
803 | class = rhodecode.lib._vendor.jsonlogger.JsonFormatter |
General Comments 0
You need to be logged in to leave comments.
Login now