commit e1335bc4ac30eb988672c32e419d6659dda7f31d Author: wyc <1104749580@qq.com> Date: Tue Jul 7 10:25:45 2026 +0800 首次提交 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b404aa --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +/old/ +/.idea +/data +/log +/repositories + + + + diff --git a/conf/app.ini b/conf/app.ini new file mode 100644 index 0000000..310e1b8 --- /dev/null +++ b/conf/app.ini @@ -0,0 +1,80 @@ +APP_NAME = Gitea: Git Service +RUN_USER = wyc +WORK_PATH = D:\ae\tools\windows_gitea +RUN_MODE = prod + +[database] +DB_TYPE = sqlite3 +PATH = data/gitea.db +HOST = +NAME = +USER = +PASSWD = +SCHEMA = +SSL_MODE = disable +LOG_SQL = false + +[repository] +ROOT = D:/ae/tools/windows_gitea/repositories + +[server] +PROTOCOL = http +HTTP_ADDR = 0.0.0.0 +HTTP_PORT = 3000 +DOMAIN = 10.10.10.95 +ROOT_URL = http://10.10.10.95:3000/ +APP_DATA_PATH = D:/ae/tools/windows_gitea/data +DISABLE_SSH = false +START_SSH_SERVER = true +SSH_DOMAIN = 10.10.10.95 +SSH_PORT = 2222 +SSH_LISTEN_PORT = 2222 +LFS_START_SERVER = true +LFS_JWT_SECRET = u29ml1fM1Q6E81ldwxRaP0yj56Nr3qfyZkW5J4enaqA + +[log] +MODE = file +LEVEL = info +ROOT_PATH = D:/ae/tools/windows_gitea/log + +[lfs] +PATH = D:/ae/tools/windows_gitea/data/lfs + +[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.10.10.10.95 + +[openid] +ENABLE_OPENID_SIGNIN = true +ENABLE_OPENID_SIGNUP = true + +[cron.update_checker] +ENABLED = false + +[session] +PROVIDER = file + +[repository.pull-request] +DEFAULT_MERGE_STYLE = merge + +[repository.signing] +DEFAULT_TRUST_MODEL = committer + +[security] +INSTALL_LOCK = true +INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3ODMzOTA4NjF9.muE5Hlq2qBvkrapQy2CHjjIGiBzE4QDPSbWGtUhJPnE +PASSWORD_HASH_ALGO = pbkdf2 + +[oauth2] +JWT_SECRET = _GTEXp6935XslkcGcmj8J9ZxTxYA2PrSzWwII59i694 diff --git a/gitea-1.26.4-windows-4.0-amd64.exe b/gitea-1.26.4-windows-4.0-amd64.exe new file mode 100644 index 0000000..26893ac Binary files /dev/null and b/gitea-1.26.4-windows-4.0-amd64.exe differ diff --git a/start.ps1 b/start.ps1 new file mode 100644 index 0000000..0002865 --- /dev/null +++ b/start.ps1 @@ -0,0 +1,6 @@ +$ErrorActionPreference = "Stop" +$scriptDir = $PSScriptRoot +Set-Location -LiteralPath $scriptDir +$exe = Join-Path $scriptDir "gitea-1.26.4-windows-4.0-amd64.exe" +$config = Join-Path $scriptDir "conf\app.ini" +& $exe web --config $config --work-path $scriptDir \ No newline at end of file diff --git a/windows_gitea.xml b/windows_gitea.xml new file mode 100644 index 0000000..e23addf Binary files /dev/null and b/windows_gitea.xml differ