You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers
6543 07629bd55c
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>
4 years ago
..
admin Validate email before inserting/updating (#13475) (#13666) 4 years ago
api/v1 Add Allow-/Block-List for Migrate & Mirrors (#13610) (#13776) 4 years ago
dev Display ui time with customize time location (#7792) 6 years ago
events Add EventSource support (#11235) 5 years ago
org Set opengraph attributes on org pages (#12803) 4 years ago
private Fix a bug when check if owner is active (#13613) 4 years ago
repo ui: show 'owner' tag for real owner (#13689) (#13743) 4 years ago
routes Store task errors following migrations and display them (#13246) (#13287) 4 years ago
user Validate email before inserting/updating (#13475) (#13666) 4 years ago
utils Return the full rejection message and errors in flash errors (#13221) (#13237) 4 years ago
home.go Simplify CheckUnitUser logic (#12854) 4 years ago
init.go Add Allow-/Block-List for Migrate & Mirrors (#13610) (#13776) 4 years ago
install.go Update golangci-lint to version 1.31.0 (#13102) 4 years ago
metrics.go Use gitea forked macaron (#7933) 6 years ago
swagger_json.go Add gitea-vet (#10948) 5 years ago