1 | -- init.lua |
2 | -- Initializes scripts for OpenResty workers |
3 |
|
4 | -- Copyright (c) 2020 Joshua 'joshuas3' Stockin |
5 | -- <https://joshstock.in> |
6 |
|
7 | local git = require "git/git_commands" |
8 |
|
9 | local pages_blob = require "pages/blob" |
10 | local pages_commit = require "pages/commit" |
11 | local pages_download = require "pages/download" |
12 | local pages_index = require "pages/index" |
13 | local pages_log = require "pages/log" |
14 | local pages_row = require "pages/raw" |
15 | local pages_refs = require "pages/refs" |
16 | local pages_tree = require "pages/tree" |
17 |
|
18 | local builder = require "utils/builder" |
19 | local nav = require "utils/nav" |
20 | local parse_uri = require "utils/parse_uri" |
21 | local tabulate = require "utils/tabulate" |
22 | local utils = require "utils/utils" |
23 |
|
24 | -- Load YAML configuration |
25 | _lyaml = require "lyaml" |
26 |
|
27 | local _yaml_config_file = io.open("/home/josh/repos/joshstock.in/lua-gitweb/repos.yaml") |
28 | yaml_config = _lyaml.load(_yaml_config_file:read("*a")) |
29 | _yaml_config_file:close() |
30 |
|