##// END OF EJS Templates
ini: simplify preservation of old settings - just keep the old line as comment...
Mads Kiilerich -
r6816:7292c597 default
parent child Browse files
Show More
@@ -112,6 +112,7 b' initial_repo_scan = true'
112 112 archive_cache_dir = %(here)s/tarballcache
113 113
114 114 ## change this to unique ID for security
115 #app_instance_uuid = VERY-SECRET
115 116 app_instance_uuid = development-not-secret
116 117
117 118 ## cut off limit for large diffs (size in bytes)
@@ -286,6 +287,7 b' beaker.session.httponly = true'
286 287 beaker.session.timeout = 2592000
287 288
288 289 ## Server secret used with HMAC to ensure integrity of cookies.
290 #beaker.session.secret = VERY-SECRET
289 291 beaker.session.secret = development-not-secret
290 292 ## Further, encrypt the data with AES.
291 293 #beaker.session.encrypt_key = <key_for_encryption>
@@ -64,7 +64,7 b' def expand(template, desc, mako_variable'
64 64 [first-section]
65 65 <BLANKLINE>
66 66 variable=VALUE
67 #variable2 = value after tab
67 #variable2 = value after tab
68 68 variable2 = VAL2
69 69 <BLANKLINE>
70 70 <BLANKLINE>
@@ -92,9 +92,8 b' def expand(template, desc, mako_variable'
92 92 key, value = m.groups()
93 93 line = m.group(0)
94 94 if key in section_settings:
95 line = '%s = %s' % (key, section_settings[key])
96 if '$' not in value:
97 line = '#%s = %s\n%s' % (key, value, line)
95 # keep old entry as example - comments might refer to it
96 line = '#%s\n%s = %s' % (line, key, section_settings[key])
98 97 return line.rstrip()
99 98
100 99 # process lines that not are comments or empty and look like name=value
@@ -108,6 +108,7 b' initial_repo_scan = false'
108 108 archive_cache_dir = %(here)s/tarballcache
109 109
110 110 ## change this to unique ID for security
111 #app_instance_uuid = VERY-SECRET
111 112 app_instance_uuid = test
112 113
113 114 ## cut off limit for large diffs (size in bytes)
@@ -284,6 +285,7 b' beaker.session.httponly = true'
284 285 beaker.session.timeout = 2592000
285 286
286 287 ## Server secret used with HMAC to ensure integrity of cookies.
288 #beaker.session.secret = VERY-SECRET
287 289 beaker.session.secret = {74e0cd75-b339-478b-b129-07dd221def1f}
288 290 ## Further, encrypt the data with AES.
289 291 #beaker.session.encrypt_key = <key_for_encryption>
@@ -17,7 +17,7 b' mako_variable_values = {'
17 17 'http_server': 'waitress',
18 18 'host': '127.0.0.1',
19 19 'port': '5000',
20 'uuid': lambda: '${app_instance_uuid}',
20 'uuid': lambda: 'VERY-SECRET',
21 21 }
22 22
23 23 # files to be generated from the mako template
General Comments 0
You need to be logged in to leave comments. Login now