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