kotalco / core-api

Kotal core API
0 stars 0 forks source link

settings/configure-domain-with-hostname #300

Closed mohamed-abdelrhman closed 10 months ago

mohamed-abdelrhman commented 11 months ago

Description

In the the settings module, users can only configure domain using IP Address

Requirements

users should be able to configure domain using IP Address or hostname

Proposed Changes

to

{ "ip_address":"1.2.3", "host_name":"123.amazon.com" }



- if ip_address != "" (don't equal empty string) keep the current message 
  Add DNS record of type A that maps to 1.2.3
Add DNS record of type A that maps *. to  1.2.3

but if ip_address == ""  show the following message 

Add DNS record of type CNAME that maps x to y
Add DNS record of type CNAME that maps *. x to y
mFarghaly commented 11 months ago

update CNAME instructions to

Add DNS record of type CNAME that maps x to y
Add DNS record of type CNAME that maps *. x to y

wait for @mabdulmoghni input on the correct map entries

ahmed-abdelhamid commented 10 months ago

Add DNS record of type CNAME that maps x to y Add DNS record of type CNAME that maps *. x to y

What is x and what is y in that case ? @mohamed-abdelrhman

mohamed-abdelrhman commented 10 months ago

@ahmed-abdelhamid x is the domain user writes down in the input field y is the host_name in the response from the backend

ahmed-abdelhamid commented 10 months ago

@mohamed-abdelrhman It is done from my side, feel free to solve that issue if you are done with it