Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.13 KB

File metadata and controls

54 lines (34 loc) · 1.13 KB

subversion-webui

Subversion Web Styling

Installation

Tested on Ubuntu 24.04

# TODO: Confirm if all are needed.
sudo apt install     lua5.3     liblua5.3-dev     luarocks     libexpat1-dev

sudo luarocks --lua-version=5.3 install luaexpat
sudo luarocks --lua-version=5.3 install lustache

Apache httpd conf

LuaOutputFilter SVN_XML_INDEX \
        "/srv/cms/admin/apache/svn-index.lua" \
        output_filter

<Location /svn>

    # Keep in order to generate XML
    SVNIndexXSLT "whatever.xsl"

    FilterDeclare SVN_XML_INDEX

    FilterProvider SVN_XML_INDEX SVN_XML_INDEX \
        "%{REQUEST_METHOD} == 'GET' \
            && %{CONTENT_TYPE} =~ m#^(?:text|application)/xml(?:;|$)# \
            && %{REQUEST_URI} =~ m#/$#"

    FilterProtocol SVN_XML_INDEX "change=yes;byteranges=no"
    # TODO: Restore compression
    FilterChain SVN_XML_INDEX


</Location>

Running tests

Tests use busted and run against the real luaexpat/lustache dependencies (only the Apache request object and the bucket-streaming protocol are mocked).

luarocks install busted

busted spec/