cd /mnt/data/gitea/custom
app.ini
APP_NAME = ***
RUN_USER = ***
RUN_MODE = prod
[oauth2]
JWT_SECRET = 1uiaY4cOQltpVGWK-hUoGjBslLh4JcnDTxzKBzaPuJA
[security]
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3MDgzMDg4MTV9.X2kRwT8fC_nzptZrEm8T2YvFYgV6odLhFWzj9vWoWJo
INSTALL_LOCK = true
SECRET_KEY = wH23OhAAHeuyUglLHSUeVEWNMKY2WZe0K6VJ4sUiU2SmQMmIm3I6XGol0pzlRgwe
[database]
DB_TYPE = mysql
HOST = ***.15.***.46:3306
NAME = ***
USER = ***
PASSWD = #####
SCHEMA =
SSL_MODE = disable
CHARSET = utf8
PATH = /mnt/data/gitea/data/gitea.db
LOG_SQL = false
[repository]
ROOT = /mnt/data/root/gitea-repositories
[server]
SSH_DOMAIN = ***.15.130. ***
DOMAIN = 1 ***.15.130. ***
HTTP_PORT = 30 ***0
ROOT_URL = http://***:***/
DISABLE_SSH = false
SSH_PORT = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = /mnt/data/gitea/data/lfs
LFS_JWT_SECRET = ljSfUMBgdMNdj5P4PY1GVtB1DtJekzBJLq8vvQ2LicA
OFFLINE_MODE = false
[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.localhost
[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = true
[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true
[session]
PROVIDER = file
[log]
MODE = console
LEVEL = info
ROOT_PATH = /mnt/data/gitea/log
REDIRECT_MACARON_LOG = true
MACARON = console
ROUTER = console
下载gitea-1.13.1-linux-amd64文件
链接:https://pan.baidu.com/s/1KcGjnanHgnhDVUTHVscPSg
提取码:w7ql
cd /mnt/data/gitea
运行
./gitea-1.13.1-linux-amd64 web