index.hbs 870 B

1234567891011121314151617181920212223242526272829303132333435363738
  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
  11. {{#if server_ip_address}}
  12. <b>{{server_ip_address}}</b>
  13. {{else}}
  14. our <b>IP address</b>
  15. {{/if}}
  16. then add the domain via the form below:
  17. </p>
  18. {{> settings/domain/table}}
  19. <div class="add-domain-wrapper">
  20. <button
  21. type="button"
  22. class="secondary show-domain-form"
  23. hx-indicator=".add-domain-wrapper"
  24. hx-get="/add-domain-form"
  25. hx-target="#domain-form-wrapper"
  26. hx-swap="innerHTML"
  27. hx-on::after-request="event.srcElement.classList.add('hidden')"
  28. >
  29. <span>{{> icons/plus}}</span>
  30. Add domain
  31. </button>
  32. {{> icons/spinner}}
  33. <div id="domain-form-wrapper">
  34. </div>
  35. </div>
  36. {{> settings/domain/dialog}}