web server support

This commit is contained in:
2021-03-11 01:14:09 +03:00
parent 422445da85
commit fd2049b334
38 changed files with 816 additions and 83 deletions

View File

@ -27,13 +27,18 @@ target =
path =
homepage =
link_path =
template_path = /usr/share/ahriman/index.jinja2
template_path = /usr/share/ahriman/repo-index.jinja2
[upload]
target =
[rsync_x86_64]
remote =
[s3_x86_64]
bucket =
[rsync_x86_64]
remote =
[web]
host =
port =
templates = /usr/share/ahriman

View File

@ -1,8 +1,8 @@
[loggers]
keys = root,builder,build_details
keys = root,builder,build_details,http
[handlers]
keys = console_handler,build_file_handler,file_handler
keys = console_handler,build_file_handler,file_handler,http_handler
[formatters]
keys = generic_format
@ -25,6 +25,12 @@ level = DEBUG
formatter = generic_format
args = ('/var/log/ahriman/build.log', 'a', 20971520, 20)
[handler_http_handler]
class = logging.handlers.RotatingFileHandler
level = DEBUG
formatter = generic_format
args = ('/var/log/ahriman/http.log', 'a', 20971520, 20)
[formatter_generic_format]
format = %(asctime)s : %(levelname)s : %(funcName)s : %(message)s
datefmt =
@ -45,3 +51,9 @@ level = DEBUG
handlers = build_file_handler
qualname = build_details
propagate = 0
[logger_http]
level = DEBUG
handlers = http_handler
qualname = http
propagate = 0