当用户遇到“您不能从不允许的主机导入”的错误时,首先需要检查Gitea的配置文件中的allowed_domains设置。这个设置用于指定哪些域名或IP地址的主机被允许导入代码库。 打开Gitea的配置文件(通常是data/gitea/conf/app.ini),找到[migrations]部分,并检查或添加ALLOWED_DOMAINS设置。例如: ini [migrations] ALLOWED_DOMAINS...
设置app.ini [ui]DEFAULT_LANDING_PAGE="explore"#默认为探索页面,即仓库列表页[git.timeout]# git 超时设置MIGRATE=36000# 单位:秒,默认值为 600 秒(10 分钟)CLONE=36000# 单位:秒,默认值为 300 秒(5 分钟)[migrations]# 迁移仓库ALLOW_LOCALNETWORKS=trueALLOWED_DOMAINS=127.0.0.1,192.168.1.xx#目标服务...
GITEA__webhook__ALLOWED_HOST_LIST=* # 添加下面的部分 # 添加设置域名 - GITEA__server__DOMAIN=xxx.xxx # 设置通过ssh拉取代码的域名 - GITEA__server__SSH_DOMAIN=xxx.xxx # 设置哪些域名或IP地址是被允许迁移到本gitea上的 - GITEA__migrations__ALLOWED_DOMAINS=10.0.0.200,*.gitee.com,gitee.com,...
ALLOWED_DOMAINS = ,*.,gitee.com,*.gitee.com,gitlab.com,*.gitlab.com [service] ;; 注册用户需要审核 REGISTER_MANUAL_CONFIRM = true [picture] ;; 头像使用gravatar在国内的镜像 ;; https://cdn.sep.cc/avatar/ ;; https://gravatar.kuibu.net/avatar/ ...
Update allowed attachment types (#29688) Completely style the webkit autofill (#29683) Highlight archived labels (#29680) Add a warning for disallowed email domains (#29658) Set user's 24h preference from their current OS locale (#29651) Add setting to disable user features when user login...
Allow blocking some email domains from registering an account (#14667) Create a new issue based on reference to an issue comment (#14366) Add support to migrate from gogs (#14342) Add pager to the branches page (#14202) Minimal OpenID Connect implementation (#14139) Display current stopwatch...
You are not allowed toimportfromprivateIPs. 解决办法如下: 找到Gitea的配置文件app.ini app.ini的位置 打开app.ini,在文件的最后加入下面的配置: [migrations] ALLOW_LOCALNETWORKS = true ALLOWED_DOMAINS = 127.0.0.1,192.168.31.100 重启Gitea即可。
IF I leaveALLOWED_DOMAINSto blank, I will get another error: You can not import from disallowed hosts, please ask the admin to check ALLOWED_DOMAINS/ALLOW_LOCALNETWORKS/BLOCKED_DOMAINS settings. Gitea Version 1.16.8 Can you reproduce the bug on the Gitea demo site?
Description gitea: OS: Linux Debian 12, up-to-date Installed as binary Configuration added to app.ini: [migration] ALLOWED_DOMAINS = my-gitlab BLOCKED_DOMAINS = ALLOW_LOCALNETWORKS = true SKIP_TLS_VERIFY = true (restarted gitea service a...
[migrations] ALLOW_LOCALNETWORKS = true ALLOWED_DOMAINS = 127.0.0.1,192.168.x.z 重新启动服务 nerdctl compose -f docker-compose.yml down nerdctl compose -f docker-compose.yml up -d 增加服务器的webhook配置 为了允许Gitea仓库使用Webhook触发CI服务器,需要增加配置 vim ./gitea/gitea/conf/app.ini 加入...