码迷,mamicode.com
首页 > 其他好文 > 详细

gitea configure

时间:2019-08-08 14:50:44      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:vat   notify   char   window   rac   view   ffline   run   reg   

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   = qwe123
SSL_MODE = disable
CHARSET  = utf8
PATH     = E:\gitservice\gitea\data\gitea.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

 

start_run.vbs

set wscriptObj = wscript.createObject("wscript.shell")
wscriptObj.run "E:\gitservice\gitea\gitea-1.9-windows-4.0-amd64.exe", 0

 

reg_svc.bat

@echo off
SET BINDIR=%~dp0
CD /D "%BINDIR%"

sc create gitea start= auto binPath= ""%BINDIR%\gitea-1.9-windows-4.0-amd64.exe" web --config "%BINDIR%\custom\conf\app.ini""

pause

 

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

 

gitea configure

标签:vat   notify   char   window   rac   view   ffline   run   reg   

原文地址:https://www.cnblogs.com/lsgxeva/p/11320995.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!