|
diff --git a/cgit.c b/cgit.c index 7b228af..bf46b5a 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -215,33 +215,33 @@ static void querystring_cb(const char *name, const char *value) |
215 | } |
215 | } |
216 | } |
216 | } |
217 | |
217 | |
218 | static void prepare_context(struct cgit_context *ctx) |
218 | static void prepare_context(struct cgit_context *ctx) |
219 | { |
219 | { |
220 | memset(ctx, 0, sizeof(ctx)); |
220 | memset(ctx, 0, sizeof(ctx)); |
221 | ctx->cfg.agefile = "info/web/last-modified"; |
221 | ctx->cfg.agefile = "info/web/last-modified"; |
222 | ctx->cfg.nocache = 0; |
222 | ctx->cfg.nocache = 0; |
223 | ctx->cfg.cache_size = 0; |
223 | ctx->cfg.cache_size = 0; |
224 | ctx->cfg.cache_dynamic_ttl = 5; |
224 | ctx->cfg.cache_dynamic_ttl = 5; |
225 | ctx->cfg.cache_max_create_time = 5; |
225 | ctx->cfg.cache_max_create_time = 5; |
226 | ctx->cfg.cache_repo_ttl = 5; |
226 | ctx->cfg.cache_repo_ttl = 5; |
227 | ctx->cfg.cache_root = CGIT_CACHE_ROOT; |
227 | ctx->cfg.cache_root = CGIT_CACHE_ROOT; |
228 | ctx->cfg.cache_root_ttl = 5; |
228 | ctx->cfg.cache_root_ttl = 5; |
229 | ctx->cfg.cache_static_ttl = -1; |
229 | ctx->cfg.cache_static_ttl = -1; |
230 | ctx->cfg.css = "/cgit.css"; |
230 | ctx->cfg.css = "/cgit.css"; |
231 | ctx->cfg.logo = "/git-logo.png"; |
231 | ctx->cfg.logo = "/cgit.png"; |
232 | ctx->cfg.local_time = 0; |
232 | ctx->cfg.local_time = 0; |
233 | ctx->cfg.max_repo_count = 50; |
233 | ctx->cfg.max_repo_count = 50; |
234 | ctx->cfg.max_commit_count = 50; |
234 | ctx->cfg.max_commit_count = 50; |
235 | ctx->cfg.max_lock_attempts = 5; |
235 | ctx->cfg.max_lock_attempts = 5; |
236 | ctx->cfg.max_msg_len = 80; |
236 | ctx->cfg.max_msg_len = 80; |
237 | ctx->cfg.max_repodesc_len = 80; |
237 | ctx->cfg.max_repodesc_len = 80; |
238 | ctx->cfg.max_stats = 0; |
238 | ctx->cfg.max_stats = 0; |
239 | ctx->cfg.module_link = "./?repo=%s&page=commit&id=%s"; |
239 | ctx->cfg.module_link = "./?repo=%s&page=commit&id=%s"; |
240 | ctx->cfg.renamelimit = -1; |
240 | ctx->cfg.renamelimit = -1; |
241 | ctx->cfg.robots = "index, nofollow"; |
241 | ctx->cfg.robots = "index, nofollow"; |
242 | ctx->cfg.root_title = "Git repository browser"; |
242 | ctx->cfg.root_title = "Git repository browser"; |
243 | ctx->cfg.root_desc = "a fast webinterface for the git dscm"; |
243 | ctx->cfg.root_desc = "a fast webinterface for the git dscm"; |
244 | ctx->cfg.script_name = CGIT_SCRIPT_NAME; |
244 | ctx->cfg.script_name = CGIT_SCRIPT_NAME; |
245 | ctx->cfg.summary_branches = 10; |
245 | ctx->cfg.summary_branches = 10; |
246 | ctx->cfg.summary_log = 10; |
246 | ctx->cfg.summary_log = 10; |
247 | ctx->cfg.summary_tags = 10; |
247 | ctx->cfg.summary_tags = 10; |
|