Show More
@@ -34,9 +34,10 b' pdebug = false' | |||||
34 | host = 127.0.0.1 |
|
34 | host = 127.0.0.1 | |
35 | port = 5000 |
|
35 | port = 5000 | |
36 |
|
36 | |||
37 | ########################## |
|
37 | ################################## | |
38 | ## WAITRESS WSGI SERVER ## |
|
38 | ## WAITRESS WSGI SERVER ## | |
39 | ########################## |
|
39 | ## Recommended for Development ## | |
|
40 | ################################## | |||
40 | use = egg:waitress#main |
|
41 | use = egg:waitress#main | |
41 | ## number of worker threads |
|
42 | ## number of worker threads | |
42 | threads = 5 |
|
43 | threads = 5 | |
@@ -56,7 +57,7 b' asyncore_use_poll = true' | |||||
56 | ## when this option is set to more than one worker, recommended |
|
57 | ## when this option is set to more than one worker, recommended | |
57 | ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers |
|
58 | ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers | |
58 | ## The `instance_id = *` must be set in the [app:main] section below |
|
59 | ## The `instance_id = *` must be set in the [app:main] section below | |
59 |
#workers = |
|
60 | #workers = 2 | |
60 | ## number of threads for each of the worker, must be set to 1 for gevent |
|
61 | ## number of threads for each of the worker, must be set to 1 for gevent | |
61 | ## generally recommened to be at 1 |
|
62 | ## generally recommened to be at 1 | |
62 | #threads = 1 |
|
63 | #threads = 1 | |
@@ -372,9 +373,15 b' beaker.session.auto = false' | |||||
372 | ## SEARCH INDEXING CONFIGURATION ## |
|
373 | ## SEARCH INDEXING CONFIGURATION ## | |
373 | ################################### |
|
374 | ################################### | |
374 |
|
375 | |||
|
376 | # WHOOSH | |||
375 | search.module = rhodecode.lib.index.whoosh |
|
377 | search.module = rhodecode.lib.index.whoosh | |
376 | search.location = %(here)s/data/index |
|
378 | search.location = %(here)s/data/index | |
377 |
|
379 | |||
|
380 | ## ELASTICSEARCH (EE edition only). Requires Elastic Search cluster | |||
|
381 | ## to be installed, and running | |||
|
382 | #search.module = rc_elasticsearch | |||
|
383 | #search.location = http://localhost:9200 | |||
|
384 | ||||
378 | ################################### |
|
385 | ################################### | |
379 | ## ERROR AND LOG HANDLING SYSTEM ## |
|
386 | ## ERROR AND LOG HANDLING SYSTEM ## | |
380 | ################################### |
|
387 | ################################### |
@@ -34,46 +34,47 b' pdebug = false' | |||||
34 | host = 127.0.0.1 |
|
34 | host = 127.0.0.1 | |
35 | port = 5000 |
|
35 | port = 5000 | |
36 |
|
36 | |||
37 | ########################## |
|
37 | ################################## | |
38 | ## WAITRESS WSGI SERVER ## |
|
38 | ## WAITRESS WSGI SERVER ## | |
39 | ########################## |
|
39 | ## Recommended for Development ## | |
40 | use = egg:waitress#main |
|
40 | ################################## | |
|
41 | #use = egg:waitress#main | |||
41 | ## number of worker threads |
|
42 | ## number of worker threads | |
42 |
|
|
43 | #hreads = 5 | |
43 | ## MAX BODY SIZE 100GB |
|
44 | ## MAX BODY SIZE 100GB | |
44 | max_request_body_size = 107374182400 |
|
45 | #max_request_body_size = 107374182400 | |
45 | ## Use poll instead of select, fixes file descriptors limits problems. |
|
46 | ## Use poll instead of select, fixes file descriptors limits problems. | |
46 | ## May not work on old windows systems. |
|
47 | ## May not work on old windows systems. | |
47 | asyncore_use_poll = true |
|
48 | #asyncore_use_poll = true | |
48 |
|
49 | |||
49 |
|
50 | |||
50 | ########################## |
|
51 | ########################## | |
51 | ## GUNICORN WSGI SERVER ## |
|
52 | ## GUNICORN WSGI SERVER ## | |
52 | ########################## |
|
53 | ########################## | |
53 | ## run with gunicorn --log-config <inifile.ini> --paste <inifile.ini> |
|
54 | ## run with gunicorn --log-config <inifile.ini> --paste <inifile.ini> | |
54 |
|
|
55 | use = egg:gunicorn#main | |
55 | ## Sets the number of process workers. You must set `instance_id = *` |
|
56 | ## Sets the number of process workers. You must set `instance_id = *` | |
56 | ## when this option is set to more than one worker, recommended |
|
57 | ## when this option is set to more than one worker, recommended | |
57 | ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers |
|
58 | ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers | |
58 | ## The `instance_id = *` must be set in the [app:main] section below |
|
59 | ## The `instance_id = *` must be set in the [app:main] section below | |
59 |
|
|
60 | workers = 2 | |
60 | ## number of threads for each of the worker, must be set to 1 for gevent |
|
61 | ## number of threads for each of the worker, must be set to 1 for gevent | |
61 | ## generally recommened to be at 1 |
|
62 | ## generally recommened to be at 1 | |
62 | #threads = 1 |
|
63 | #threads = 1 | |
63 | ## process name |
|
64 | ## process name | |
64 |
|
|
65 | proc_name = rhodecode | |
65 | ## type of worker class, one of sync, gevent |
|
66 | ## type of worker class, one of sync, gevent | |
66 | ## recommended for bigger setup is using of of other than sync one |
|
67 | ## recommended for bigger setup is using of of other than sync one | |
67 |
|
|
68 | worker_class = sync | |
68 | ## The maximum number of simultaneous clients. Valid only for Gevent |
|
69 | ## The maximum number of simultaneous clients. Valid only for Gevent | |
69 | #worker_connections = 10 |
|
70 | #worker_connections = 10 | |
70 | ## max number of requests that worker will handle before being gracefully |
|
71 | ## max number of requests that worker will handle before being gracefully | |
71 | ## restarted, could prevent memory leaks |
|
72 | ## restarted, could prevent memory leaks | |
72 |
|
|
73 | max_requests = 1000 | |
73 |
|
|
74 | max_requests_jitter = 30 | |
74 | ## ammount of time a worker can spend with handling a request before it |
|
75 | ## ammount of time a worker can spend with handling a request before it | |
75 | ## gets killed and restarted. Set to 6hrs |
|
76 | ## gets killed and restarted. Set to 6hrs | |
76 |
|
|
77 | timeout = 21600 | |
77 |
|
78 | |||
78 |
|
79 | |||
79 | ## prefix middleware for RhodeCode, disables force_https flag. |
|
80 | ## prefix middleware for RhodeCode, disables force_https flag. | |
@@ -319,7 +320,7 b' beaker.session.data_dir = %(here)s/data/' | |||||
319 |
|
320 | |||
320 | beaker.session.key = rhodecode |
|
321 | beaker.session.key = rhodecode | |
321 | beaker.session.secret = production-rc-uytcxaz |
|
322 | beaker.session.secret = production-rc-uytcxaz | |
322 |
|
|
323 | beaker.session.lock_dir = %(here)s/data/sessions/lock | |
323 |
|
324 | |||
324 | ## Secure encrypted cookie. Requires AES and AES python libraries |
|
325 | ## Secure encrypted cookie. Requires AES and AES python libraries | |
325 | ## you must disable beaker.session.secret to use this |
|
326 | ## you must disable beaker.session.secret to use this | |
@@ -346,9 +347,15 b' beaker.session.auto = false' | |||||
346 | ## SEARCH INDEXING CONFIGURATION ## |
|
347 | ## SEARCH INDEXING CONFIGURATION ## | |
347 | ################################### |
|
348 | ################################### | |
348 |
|
349 | |||
|
350 | # WHOOSH | |||
349 | search.module = rhodecode.lib.index.whoosh |
|
351 | search.module = rhodecode.lib.index.whoosh | |
350 | search.location = %(here)s/data/index |
|
352 | search.location = %(here)s/data/index | |
351 |
|
353 | |||
|
354 | ## ELASTICSEARCH (EE edition only). Requires Elastic Search cluster | |||
|
355 | ## to be installed, and running | |||
|
356 | #search.module = rc_elasticsearch | |||
|
357 | #search.location = http://localhost:9200 | |||
|
358 | ||||
352 | ################################### |
|
359 | ################################### | |
353 | ## ERROR AND LOG HANDLING SYSTEM ## |
|
360 | ## ERROR AND LOG HANDLING SYSTEM ## | |
354 | ################################### |
|
361 | ################################### | |
@@ -361,7 +368,7 b' appenlight = false' | |||||
361 |
|
368 | |||
362 | appenlight.server_url = https://api.appenlight.com |
|
369 | appenlight.server_url = https://api.appenlight.com | |
363 | appenlight.api_key = YOUR_API_KEY |
|
370 | appenlight.api_key = YOUR_API_KEY | |
364 |
|
|
371 | #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5 | |
365 |
|
372 | |||
366 | # used for JS client |
|
373 | # used for JS client | |
367 | appenlight.api_public_key = YOUR_API_PUBLIC_KEY |
|
374 | appenlight.api_public_key = YOUR_API_PUBLIC_KEY |
General Comments 0
You need to be logged in to leave comments.
Login now