zoukankan      html  css  js  c++  java
  • gitea configure

    gitea configure

    app.ini

    APP_NAME = Gitea: Git with a cup of tea
    RUN_USER = LSGX
    RUN_MODE = prod
    
    [oauth2]
    JWT_SECRET = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    
    [security]
    INTERNAL_TOKEN = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    INSTALL_LOCK   = true
    SECRET_KEY     = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    
    [database]
    DB_TYPE  = sqlite3
    HOST     = 127.0.0.1:3306
    NAME     = gitea
    USER     = lsgx
    PASSWD   = xxxxxx
    SSL_MODE = disable
    CHARSET  = utf8
    PATH     = E:gitservicegiteadatagitea.db
    
    [repository]
    ROOT = E:/gitservice/repositories
    
    [server]
    SSH_DOMAIN       = 192.168.195.1
    DOMAIN           = 192.168.195.1
    HTTP_PORT        = 3000
    ROOT_URL         = http://192.168.195.1:3000/
    DISABLE_SSH      = false
    SSH_PORT         = 22
    LFS_START_SERVER = true
    LFS_CONTENT_PATH = E:/gitservice/gitea/data/lfs
    LFS_JWT_SECRET   = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    OFFLINE_MODE     = false
    START_SSH_SERVER = true
    LANDING_PAGE     = explore
    
    [mailer]
    ENABLED = false
    
    [service]
    REGISTER_EMAIL_CONFIRM            = false
    ENABLE_NOTIFY_MAIL                = false
    DISABLE_REGISTRATION              = false
    ALLOW_ONLY_EXTERNAL_REGISTRATION  = false
    ENABLE_CAPTCHA                    = false
    REQUIRE_SIGNIN_VIEW               = false
    DEFAULT_KEEP_EMAIL_PRIVATE        = false
    DEFAULT_ALLOW_CREATE_ORGANIZATION = true
    DEFAULT_ENABLE_TIMETRACKING       = true
    NO_REPLY_ADDRESS                  = noreply.example.org
    
    [picture]
    DISABLE_GRAVATAR        = false
    ENABLE_FEDERATED_AVATAR = true
    
    [openid]
    ENABLE_OPENID_SIGNIN = true
    ENABLE_OPENID_SIGNUP = true
    
    [session]
    PROVIDER = file
    
    [log]
    MODE      = file
    LEVEL     = info
    ROOT_PATH = E:/gitservice/gitea/log

    gitea_start_run.vbs

    set wscriptObj = wscript.createObject("wscript.shell")
    wscriptObj.run "E:gitservicegitea\gitea-1.9.2-windows-4.0-amd64.exe web --config E:gitservicegitea\customconfapp.ini", 0

    reg_svc.bat

    @echo off
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    
    "%BINDIR%gitea-1.9-windows-4.0-amd64.exe" web --config "%BINDIR%customconfapp.ini"
    
    pause

    ================ End

  • 相关阅读:
    JDK 14的新特性:更加好用的NullPointerExceptions
    技术回顾系列:最新最热门的技术大事-第一周
    JDK 14的新特性:instanceof模式匹配
    JDK 15 JAVA 15的新特性展望
    怎么break java8 stream的foreach
    java 8 stream中的Spliterator简介
    怎么在java中创建一个自定义的collector
    java 8 stream reduce详解和误区
    java stream中Collectors的用法
    java关于throw Exception的一个小秘密
  • 原文地址:https://www.cnblogs.com/lsgxeva/p/11320995.html
Copyright © 2011-2022 走看看