Skip to content

Commit

Permalink
cookbook for changing site domain
Browse files Browse the repository at this point in the history
  • Loading branch information
czue committed Jun 11, 2024
1 parent 1f6efe3 commit 95366e4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions deployment/kamal.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,3 +473,17 @@ ALLOWED_HOSTS = [

It is recommended to read [the security documentation](https://docs.djangoproject.com/en/5.0/topics/security/#host-headers-virtual-hosting)
for this feature to understand the implications of it being included.

### Cookbooks

#### Changing your site URL

To change your site's URL, do the following:

1. Set up a new DNS endpoint as outlined above.
2. Change all ``Host(`example.com`)`` values in your traefik configuration in `deploy.yml` to the new domain.
3. Update your `ALLOWED_HOSTS` setting / environment variable as needed.
4. Run `kamal traefik reboot`.
4. Run `kamal deploy`

Your app should now be running on your new domain.

0 comments on commit 95366e4

Please sign in to comment.