oneuptime icon indicating copy to clipboard operation
oneuptime copied to clipboard

Can't add custom domain for status

Open shor0814 opened this issue 1 year ago • 3 comments

Describe the bug Add a custom domain, when I select Add CNAME to verify the CNAME, I get an error "Custom Domains not enabled for this OneUptime installation. Please contact your server admin to enable this feature." To Reproduce Steps to reproduce the behavior:

  1. In Project Settings, Add a domain (works) and Verify (works) (mycompanyname.com)
  2. Click the Status Pages tab
  3. Click the name of the Status Page that you want to add the custom domain to
  4. Select Custom Domains
  5. Add a custom domain (subdomain=status, domain dropdown is mycompany.com domain),
  6. Do not select a certificate and click Create Status Page Domain
  7. Click the Check CNAME
  8. See error

Expected behavior Should be a way to validate the subdomain, much like the verification for a domain.

Screenshots Screenshot 2024-12-25 174651

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser Chrome
  • Version 131.0.6778.205

Deployment Type Kubernetes

Additional context My current values.yaml is below:

host: oneuptime.mycompany.com
# If hosted on non-ssl server then change this to http
httpProtocol: https

statusPage:
  cnameRecord: oneuptime.mycompany.com

oneuptimeIngress:
  enabled: true
  hosts:
    - oneuptime.mycompany.com

global:
  storageClass: "local-path"

shor0814 avatar Dec 26 '24 03:12 shor0814

Reinstall fixed this, but now, I can't verify the CNAME.

image

image

Any hints?

shor0814 avatar Dec 30 '24 21:12 shor0814

For anyone wondering, I had to add status.mycompany.com (Cname record) to oneuptimeIngress.hosts so it containeed my main host, and any status hostsnames. Seems kind of odd, so still should be considered a bug. I did find the solution through an incident search for the same problem.

shor0814 avatar Dec 31 '24 18:12 shor0814

Hi, can you give an example on how is your values.yaml configured now? I am having the same problem.

yuri-dadosfera avatar Aug 05 '25 20:08 yuri-dadosfera