跳到主要内容

“添加域名”向导:账户和密钥

“添加域名”向导会询问以哪个 Namecheap 或 Cloudflare 账户工作,并且在您提供新密钥时,询问把该密钥保存在哪里。本文介绍这些步骤。整个向导见“添加域名”向导。

选择账户​

对于新域名,向导会询问 Which Namecheap account should register it? 并补充 The registration is paid from the balance of the chosen account. 对于由 Qubix 在 Cloudflare 中创建区域的域名,向导会询问 Which Cloudflare account should hold the zone? 并补充 Qubix creates the zone and changes the name servers at the registrar. 提示会随情况变化:当 E-mail 已开启而流量不经过 Cloudflare 时,提示为 The zone is needed for the mail records.;对于在其他注册商处注册的已有域名,提示为 Qubix creates the zone; change the name servers at the registrar following the instructions.

在账户步骤中,向导显示一个列表——购买域名时是 Namecheap account,使用 Cloudflare 时是 Cloudflare account。在您选择账户之前,列表显示 Choose…,其下的提示为 Company accounts and your personal ones。

列表分为三组:

  • Company accounts——整个 Qubix 安装的账户。排在最前面的是“连接”中的主密钥,显示为 系统账户,然后是管理员为公司保存的账户。
  • Personal——您自己的账户,位于“我的设置”→“我的账户”。
  • Other——Give the key of another account…,用于以 Qubix 尚未拥有的账户工作。

Namecheap 账户旁边,列表显示其余额:… — …——账户名称和余额出现在省略号的位置。余额少于名称集合总价的账户仍留在列表中但无法选择,列表会写明还差多少:… — … · … short

Cloudflare 账户旁边,列表显示其区域数量:… — … zones 当 Qubix 无法读取该数量时,该账户显示 … — zone count unknown,其下附有服务器给出的原因。

当 Qubix 安装中恰好有一个 Cloudflare 账户时,Cloudflare 账户步骤会被跳过——Qubix 会直接使用该账户。

提供另一个账户的密钥​

  1. 在列表中选择 Give the key of another account…。
  2. 列表下方会出现 Save the key 一行,并附有提示 This account is not in Qubix. 请选择密钥保存到哪里:
    • To my accounts——保存到您的个人账户;
    • To the installation's connections——保存到“连接”,供整个 Qubix 安装使用;管理员能看到此选项,其他人看不到;
    • Do not save——密钥仅对本次设置有效。
  3. 在下一步中,输入密钥并点击 Check key。

您要求保存的密钥,会在您于计划步骤点击 Register 或 Confirm 时保存,并且仅当计划用到该密钥时才会保存。

密钥步骤​

Namecheap key 步骤会询问 Paste the Namecheap API key。在问题下方,向导说明为什么需要密钥:注册新域名时是 The key is needed to register ….,为已有域名设置记录时是 The key is needed to set records in the DNS of …. 域名出现在省略号的位置。

Cloudflare key 步骤会询问 Paste the Cloudflare API token 并补充 Zone:Edit and DNS:Edit permissions are needed.

卡片顶部的绿色条写着 Secure input. The key goes straight to the Qubix server; it reaches Namecheap or Cloudflare only from the server. 其下是密钥的各个字段:

服务字段名称下方字段中的示例
NamecheapAPI 用户Profile → Tools → API Accessusername
NamecheapAPI 密钥Hidden while typing••••••••••••
CloudflareAPI 令牌My Profile → API Tokens••••••••••••
Cloudflare账户 ID(可选)For an account token — the Account ID from the Cloudflare account home page.—

Cloudflare 的最后一个字段是可选的。点击 Check key。密钥可用时,字段下方的条显示 The key works.;对于为已有域名提供的 Namecheap 密钥,它还会确认该域名:The key works, … is in this account. 检查之后再编辑任何字段都会使结果作废,需要重新检查密钥。

在卡片下方,向导写着 You can leave the key unsaved — then it works only for this setup. 对于不是管理员的人,它还会补充 Only an administrator saves a company key.

在密钥步骤中保存密钥​

当出现密钥步骤、而账户步骤中没有提问时,检查成功后向导会询问 Save the key?:

  • Do not save——The key works only for this setup and is forgotten.
  • As a personal key——Saved in My settings → My accounts.
  • As a company key——Saved in Connections for the whole installation. Administrators only.

已有域名的账户​

当您连接已拥有的域名时,向导会检查它并显示 Where the domain is now。Key in Qubix 一行写明其密钥能够访问该域名的账户:公司账户显示为 … (company),个人账户显示为 … (personal)——省略号的位置是账户名称。

当向导没有需要更改的那个账户的密钥时,它会增加 DNS access 步骤,您的回答会引向上面的密钥步骤。参见 DNS 访问。

下一步​