index.hbs 780 B

12345678910111213141516171819202122232425262728293031
  1. <h2>
  2. Custom domain
  3. </h2>
  4. <p>
  5. You can set a custom domain for your short URLs, so instead of
  6. <b>{{default_domain}}/shorturl</b> you can have
  7. <b>yoursite.com/shorturl.</b>
  8. </p>
  9. <p>
  10. Point your domain's A record to <b>192.64.116.170</b> then add the domain
  11. via the form below:
  12. </p>
  13. {{> settings/domain/table}}
  14. <div class="add-domain-wrapper">
  15. <button
  16. type="button"
  17. class="secondary show-domain-form"
  18. hx-indicator=".add-domain-wrapper"
  19. hx-get="/add-domain-form"
  20. hx-target="#domain-form-wrapper"
  21. hx-swap="innerHTML"
  22. hx-on::after-request="event.srcElement.classList.add('hidden')"
  23. >
  24. <span>{{> icons/plus}}</span>
  25. Add domain
  26. </button>
  27. {{> icons/spinner}}
  28. <div id="domain-form-wrapper">
  29. </div>
  30. </div>
  31. {{> settings/domain/dialog}}