mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-01 19:49:27 +00:00
New whatismydns feature (#29)
This commit is contained in:
35
test/docker-compose.yml
Normal file
35
test/docker-compose.yml
Normal file
@ -0,0 +1,35 @@
|
||||
services:
|
||||
whatismyip:
|
||||
build:
|
||||
context: ../
|
||||
target: dev
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "8001:8001"
|
||||
- "8001:8001/udp"
|
||||
- "53531:53/udp"
|
||||
command:
|
||||
- "-geoip2-city"
|
||||
- "/GeoIP2-City-Test.mmdb"
|
||||
- "-geoip2-asn"
|
||||
- "/GeoLite2-ASN-Test.mmdb"
|
||||
- "-bind"
|
||||
- ":8000"
|
||||
- "-tls-bind"
|
||||
- ":8001"
|
||||
- "-tls-crt"
|
||||
- "/server.pem"
|
||||
- "-tls-key"
|
||||
- "/server.key"
|
||||
- "-trusted-header"
|
||||
- "X-Real-IP"
|
||||
- "-enable-secure-headers"
|
||||
- "-enable-http3"
|
||||
- "-resolver"
|
||||
- "/resolver.yml"
|
||||
volumes:
|
||||
- ./GeoIP2-City-Test.mmdb:/GeoIP2-City-Test.mmdb
|
||||
- ./GeoLite2-ASN-Test.mmdb:/GeoLite2-ASN-Test.mmdb
|
||||
- ./server.pem:/server.pem
|
||||
- ./server.key:/server.key
|
||||
- ./resolver.yml:/resolver.yml
|
10
test/resolver.yml
Normal file
10
test/resolver.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
domain: dns.example.com
|
||||
redirect_port: ":8000"
|
||||
resource_records:
|
||||
- "1800 IN SOA xns.example.com. hostmaster.example.com. 1 10000 2400 604800 1800"
|
||||
- "3600 IN NS xns.example.com."
|
||||
ipv4:
|
||||
- "127.0.0.2"
|
||||
ipv6:
|
||||
- "aaa:aaa:aaa:aaaa::1"
|
Reference in New Issue
Block a user