1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

add an api for setting custom DNS records

Works like this:

```curl -d "" --user email:password https://.../admin/dns/set/qname/rtype/value```

where the rtype and value default to "A" and the remote IP address of the request, so that a simple, empty POST to

```https://.../admin/dns/set/desktop.mydomain.com```

will point desktop.mydomain.com to the caller's IPv4 address.

closes #140
This commit is contained in:
Joshua Tauberer
2014-08-23 23:03:45 +00:00
parent 5d42c125eb
commit df20d447a9
3 changed files with 99 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ server {
rewrite ^/admin$ /admin/;
location /admin/ {
proxy_pass http://localhost:10222/;
proxy_set_header X-Forwarded-For $remote_addr;
}
# Roundcube Webmail configuration.