Add domain setup

This commit is contained in:
Felix Klenner 2024-07-18 18:01:20 +02:00
parent 6874e3a0ce
commit effe778067

View file

@ -7,6 +7,13 @@ This code is mostly unmaintained and uses several old javascript libraries.
### Setup: ### Setup:
The following domain setup is required, for the IPv4/IPv6 tests to work:
- The domains can be changed in `include/config.php`
- `A` record for v4.ip.zuim.de and no `AAAA` record, so only IPv4 is possible for this domain
- `AAAA` record for v6.ip.zuim.de and no `A` record, so only IPv6 is possible for this domain
- `A` and `AAAA` record for ip.zuim.de as the main entry point
- Set up your webserver, so direct ip access and all of these domains resolve to the project directory.
To get the geoip data, the geoip2 module for nginx is used with the following configuration: To get the geoip data, the geoip2 module for nginx is used with the following configuration:
``` ```
geoip2 /var/lib/GeoIP/GeoLite2-City.mmdb { geoip2 /var/lib/GeoIP/GeoLite2-City.mmdb {
@ -32,4 +39,4 @@ Download these files directly and add them in the main folder:
- https://ip.zuim.de/1MB.zip - https://ip.zuim.de/1MB.zip
- https://ip.zuim.de/10MB.zip - https://ip.zuim.de/10MB.zip
- https://ip.zuim.de/100MB.zip - https://ip.zuim.de/100MB.zip
- https://ip.zuim.de/img.jpg?t=1721317515702 - https://ip.zuim.de/img.jpg