Can not migrate repositories from private IPs #8275

Closed
opened 2025-11-02 08:00:34 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @oper1000 on GitHub (Dec 22, 2021).

Gitea Version

1.15.8

Git Version

No response

Operating System

Client:Windows 10 Server:Debian 10.9

How are you running Gitea?

use docker: gitea/gitea:1.15.8 + mysql:8 image
Install with Docker Compose

use yml file get from https://docs.gitea.io/zh-cn/install-with-docker/

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

Why i can not Can not migrate repositories from private IPs

there's two server all in LAN (private net)

i want Migrate from other server that already have git datas.
but Gitea tell me can not do like this , why ?

help me ,thanks a lot .

Screenshots

企业微信截图_20211222145303

Originally created by @oper1000 on GitHub (Dec 22, 2021). ### Gitea Version 1.15.8 ### Git Version _No response_ ### Operating System Client:Windows 10 Server:Debian 10.9 ### How are you running Gitea? use docker: gitea/gitea:1.15.8 + mysql:8 image Install with Docker Compose use yml file get from https://docs.gitea.io/zh-cn/install-with-docker/ ### Database MySQL ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Description Why i can not Can not migrate repositories from private IPs there's two server all in LAN (private net) i want Migrate from other server that already have git datas. but Gitea tell me can not do like this , why ? help me ,thanks a lot . ### Screenshots ![企业微信截图_20211222145303](https://user-images.githubusercontent.com/993995/147048733-70a12805-2417-4eaf-b077-dff128c1c177.png)
Author
Owner

@qwerty287 commented on GitHub (Dec 22, 2021):

You can set ALLOW_LOCALNETWORKS under the migration category to true in your app.ini file.

@qwerty287 commented on GitHub (Dec 22, 2021): You can set `ALLOW_LOCALNETWORKS` under the [`migration` category](https://docs.gitea.io/en-us/config-cheat-sheet/#migrations-migrations) to `true` in your `app.ini` file.
Author
Owner

@wxiaoguang commented on GitHub (Dec 22, 2021):

That's why I changed the i18n text to below in 1.16:

migrate.permission_denied_blocked = You can not import from disallowed hosts, please ask the admin to check ALLOWED_DOMAINS/ALLOW_LOCALNETWORKS/BLOCKED_DOMAINS settings.
@wxiaoguang commented on GitHub (Dec 22, 2021): That's why I changed the i18n text to below in 1.16: ``` migrate.permission_denied_blocked = You can not import from disallowed hosts, please ask the admin to check ALLOWED_DOMAINS/ALLOW_LOCALNETWORKS/BLOCKED_DOMAINS settings. ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8275