This is to help developers to test their service locally but with https enabled.
Why https is needed ?
- Some JavaScript API can be only used under https on browsers
- Some services (Like redhat keycloak, ory/hydra, etc) strongly recommended, or must use https
- For some SAML/OPENID providers, the redirect/callback can only be https
- Same behavior on dev and production (Who do not have https on production today?)
How to use
The following DNS records have been created:
| Host | IP | Notes |
|---|---|---|
| localhost.local-tests.dev | 127.0.0.1 |
And for IPs
| CIDR | Start IP | End IP |
|---|---|---|
| 192.168.0.0/24 | 192.168.0.1 | 192.168.0.255 |
| 192.168.1.0/24 | 192.168.1.1 | 192.168.1.255 |
| 192.168.50.0/24 | 192.168.50.1 | 192.168.50.255 |
| 192.168.88.0/24 | 192.168.88.1 | 192.168.88.255 |
If you need more IPs please create a ticket
The Host name ip-a-b-c-d.local-tests.dev is configured to be resolved to be a.b.c.d
For example,
$ nslookup ip-192-168-88-1.local-tests.dev
Server: fddd:dddd::
Address: fddd:dddd::#53
Non-authoritative answer:
Name: ip-192-168-88-1.local-tests.dev
Address: 192.168.88.1
And you can config your host name to this host to debug your services, with the https certificate from LetsEncrypt
at https://github.com/ghlocaltests/certificates
And config your service (Like SpringBoot/Tomcat/Nginx) to use this certificate, to enable https.
Enjoy!