Kiln » Kiln Storage Service Read More
Clone URL:  
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright (C) 2008-2011 by Fog Creek Software. All rights reserved. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2, incorporated herein by reference. DEBUG = False try: import _winreg as winreg except ImportError: winreg = None import os # Defaults for registry-overridden settings. KILN_REPOSITORY_ROOT = r'c:\KilnRepositories' KILN_BFILE_STORE = r'c:\KilnRepositories\bfilestore' DO_INDEXING = True # Now try to load from the registry. if winreg: try: with winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r'Software\Fog Creek Software\Kiln') as hKey: KILN_REPOSITORY_ROOT, _ = winreg.QueryValueEx(hKey, "KilnRepositoryRoot") KILN_BFILE_STORE = os.path.join(KILN_REPOSITORY_ROOT, 'bfilestore') except: pass try: with winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r'Software\Fog Creek Software\Kiln\OpenGrok') as hKey: # DoIndexing should be a DWORD DO_INDEXING, _ = winreg.QueryValueEx(hKey, "DoIndexing") except: pass KILN_BFILE_TMP = KILN_BFILE_STORE # Only edited by build scripts KILN_BACKEND_VERSION = '1.0.0 (Dev)' # Maximum file size that can be committed via the web interface: 2MB KILN_MAX_COMMIT_FILE_SIZE = 2 * 1024 * 1024 # Settings for fogbugz-middleware FOGBUGZ_URL = 'http://our.fogbugz.com/scoutSubmit.asp' FOGBUGZ_USERNAME = 'BugzScout' FOGBUGZ_PROJECT = 'Kiln' FOGBUGZ_AREA = 'Backend' FOGBUGZ_REPORT_BROKEN_LINKS = True HOSTED = False INTERNAL_IPS = [] STORAGE_PEERS = {} POST_STORAGE_PEERS = {} REDIS_HOST = 'localhost' REDIS_PORT = 56784 REDIS_DB = 0 SYNC_REDIS_HOST = 'localhost' SYNC_REDIS_PORT = 56784 SYNC_REDIS_DB = 1 TAILS_REDIS_DB = 2 DO_SYNCSTATUS = False try: from local_settings import * except ImportError: pass