diff options
author | 6543 <6543@obermui.de> | 2020-12-02 01:28:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-01 19:28:34 -0500 |
commit | 07629bd55cb9bf71459dcdf2eb3feaa5d24cfeca (patch) | |
tree | 8d2fd55d535bdbfa0667e9d907de08aec21e4af1 /modules/storage | |
parent | d475b656b1e80e0f0f67c10416fb0b6621b66d3b (diff) | |
download | gitea-07629bd55cb9bf71459dcdf2eb3feaa5d24cfeca.tar.gz gitea-07629bd55cb9bf71459dcdf2eb3feaa5d24cfeca.zip |
Add Allow-/Block-List for Migrate & Mirrors (#13610) (#13776)
* add black list and white list support for migrating repositories
* specify log message
* use blocklist/allowlist
* allways use lowercase to match url
* Apply allow/block
* Settings: use existing "migrations" section
* convert domains lower case
* dont store unused value
* Block private addresses for migration by default
* use proposed-upstream func to detect private IP addr
* add own error for blocked migration, add tests, imprufe api
* fix test
* fix-if-localhost-is-ipv4
* rename error & error message
* rename setting options
* Apply suggestions from code review
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/storage')
0 files changed, 0 insertions, 0 deletions