Skip to content

Commit dbbb7b4

Browse files
Matthew Fishercarmstrong
authored andcommitted
docs(developer): add domain documentation
1 parent 321b96c commit dbbb7b4

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

docs/developer/config-application.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,35 @@ the application to an external PostgreSQL database.
4040
4141
Detachments can be performed with ``deis config:unset``.
4242

43+
Add Custom Domains to the Application
44+
-------------------------------------
45+
46+
You can use ``deis domains`` to add or remove custom domains to your application:
47+
48+
.. code-block:: console
49+
50+
$ deis domains:add hello.bacongobbler.com.com
51+
Adding hello.bacongobbler.com to finest-woodshed... done
52+
53+
Once that's done, you can go into your DNS registrar and set up a CNAME from the new
54+
appname to the old one:
55+
56+
.. code-block:: console
57+
58+
$ dig hello.deisapp.com
59+
[...]
60+
;; ANSWER SECTION:
61+
hello.bacongobbler.com. 1759 IN CNAME finest-woodshed.deisapp.com.
62+
finest-woodshed.deisapp.com. 270 IN A 172.17.8.100
63+
64+
.. note::
65+
66+
Setting a CNAME for your root domain can cause issues. Setting your @ record
67+
to be a CNAME causes all traffic to go to the other domain, including mail and the SOA
68+
("start-of-authority") records. It is highly recommended that you bind a subdomain to
69+
an application, however you can work around this by pointing the @ record to the
70+
address of the load balancer (if any).
71+
4372
Track Changes
4473
-------------
4574
Each time a build or config change is made to your application, a new :ref:`release` is created.

0 commit comments

Comments
 (0)