gitsolo是一个纯Java开发的极简git服务器(比gitlab简太多了啦),只要JDK一键启动,支持HTT(S)协议、支持多项目组多成员权限等管理、支持二次开发和整合到公司OA中。 演示地址:http://gitsolo.demo.zhiqim.org(用户名:zhiqim 密码:zhiqim@2015)

森中灵 最后提交于2年前 同步去除zhiqim_manager_tr_no_record的colspan
zhiqim.xml4KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zhiqim-config PUBLIC "-//ZHIQIM //DTD Zhiqim-Config Configuration 8.0.0//EN" "https://zhiqim.org/xmldtds/zhiqim_config_8_0_0.dtd">
<zhiqim-config>

    <group id="boot" desc="系统启动配置">
        <item key="name" value="知启蒙代码仓库" type="protected" desc="系统名称" />
        <item key="version" value="V8.0.4" type="protected" desc="系统版本" />
        <item key="port" value="50080" type="protected" desc="系统监听端口,用于启动监听和命令关闭工程" />
        <item key="home" value="d:/Java/jdk1.8.0_202/" type="protected" desc="JDK根目录,路径符统一顺斜杠" />
        <item key="process" value="gitsolo" type="protected" desc="使用的进程名,MAC系统下该配置无效" />
        <item key="args" value="-server -Xms64m -Xmx1024m" type="protected" desc="JVM参数" />
    </group>

    <group id="config" desc="系统其他配置文件,./开头表示工程相对路径下,绝对路径使用/或d:\\等">
        <item key="logging" value="./conf/logging.xml" type="protected" desc="日志配置"/>
    </group>

    <group id="service" desc="系统服务配置项,注意顺序有影响">
        <item key="logging" value="org.zhiqim.kernel.logging.LogServer" type="protected" desc="日志服务"/>
        <item key="logcutter" value="org.zhiqim.kernel.logging.LogLinuxNohupCutter" type="protected" desc="日志Linux切割服务"/>
        <item key="orm" value="org.zhiqim.orm.ORMServer" type="protected" desc="数据库服务"/>
        <item key="git" value="org.zhiqim.git.GitServer" type="protected" desc="Git服务"/>
        <item key="gitsolo" value="org.zhiqim.httpd.HttpServer" type="protected" desc="GitHttp服务"/>
    </group>

    <group id="orm" desc="MySQL数据库服务配置">
        <item key="dbType" value="mysql" type="protected" desc="数据库类型,支持oracle|mysql|mssql|postgresql|sqlite" />
        <item key="driver" value="org.zhiqim.mysql5_1_47.jdbc.Driver" type="protected" desc="数据库驱动" />
        <item key="url" value="jdbc:mysql://127.0.0.1:3306/gitsolo?useUnicode=true&amp;characterEncoding=UTF-8" type="protected" desc="数据库Url" />
        <item key="user" value="root" type="protected" desc="数据库用户名" />
        <item key="pass" value="root" type="protected" desc="数据库密码" />
        <item key="minPoolSize" value="2" type="protected" desc="线程池最小值" />
        <item key="maxPoolSize" value="20" type="protected" desc="线程池最大值" />
        <item key="maxKeepTime" value="7001" type="protected" desc="每连接最大保持时长,大于该值将重建连接,单位秒" />
    </group>

    <!--
    <group id="orm" desc="SQLite数据库服务配置">
        <item key="dbType" value="sqlite" type="protected" desc="数据库类型,支持oracle|mysql|mssql|postgresql|sqlite" />
        <item key="driver" value="org.sqlite.JDBC" type="protected" desc="数据库驱动" />
        <item key="url" value="jdbc:sqlite:./database/gitsolo.db" type="protected" desc="数据库Url" />
        <item key="user" value="root" type="protected" desc="数据库用户名" />
        <item key="pass" value="root" type="private" desc="数据库密码" />
        <item key="minPoolSize" value="2" type="protected" desc="线程池最小值" />
        <item key="maxPoolSize" value="20" type="protected" desc="线程池最大值" />
        <item key="maxKeepTime" value="7001" type="protected" desc="每连接最大保持时长,大于该值将重建连接,单位秒" />
    </group>
    -->

    <group id="git" desc="Git服务配置">
        <item key="gitRootDir" value="./repository" type="protected" desc="仓库根目录配置" />
    </group>

    <group id="gitsolo" desc="Gitsolo的HTTP服务配置">
        <item key="context" value="gitsolo.root" type="protected" desc="HTTP上下文环境,多个用逗号隔开" />
        <item key="scheme" value="HTTP" type="protected" desc="HTTP或HTTPS协议" />
        <item key="port" value="80" type="protected" desc="监听端口" />
        <item key="poMinSize" value="10" type="protected" desc="线程池最小值" />
        <item key="poMaxSize" value="200" type="protected" desc="线程池最大值" />
    </group>
    
    <group id="gitsolo.root" desc="Gitsolo的根目录配置">
        <item key="path" value="/" type="protected" desc="虚拟目录,必填" />
        <item key="resourceType" value="directory" type="protected" desc="资源目录类型classpath|directory,必填" />
        <item key="resourcePath" value="./resource" type="protected" desc="资源目录,必填,./开头表示工程相对路径" />
        <item key="welcomeUrl" value="/index.htm" type="protected" desc="欢迎页,必填" />
        <item key="maxContentLength" value="524288000" type="protected" desc="支持最多的内容长度,单位字节,0表示不限制" />
    </group>

</zhiqim-config>