# 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
|
Loading...