mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 05:38:15 -05:00
ab772d645b
- Adds ipranges command to fetch ip ranges from Cloudfront and Cloudflare - Write the ipranges file on docker start - Support disabling ipv4 as well as ipv6 now - Prevent disabling both
18 lines
515 B
Go
18 lines
515 B
Go
package model
|
|
|
|
// CloudfrontIPRangePrefix is used within config for cloudfront
|
|
type CloudfrontIPRangeV4Prefix struct {
|
|
Value string `json:"ip_prefix"`
|
|
}
|
|
|
|
// CloudfrontIPRangeV6Prefix is used within config for cloudfront
|
|
type CloudfrontIPRangeV6Prefix struct {
|
|
Value string `json:"ipv6_prefix"`
|
|
}
|
|
|
|
// CloudfrontIPRanges is the main config for cloudfront
|
|
type CloudfrontIPRanges struct {
|
|
IPV4Prefixes []CloudfrontIPRangeV4Prefix `json:"prefixes"`
|
|
IPV6Prefixes []CloudfrontIPRangeV6Prefix `json:"ipv6_prefixes"`
|
|
}
|