Permission
| Group |
Permission |
Allows |
| Subdomain Manager |
ext.subdomain-manager.manage |
Open the Subdomains page and create or remove the subdomains of this server |
Admin routes
These routes are used by the Subdomain Manager admin page. They live under /api/admin/extensions/subdomain-manager.
| Method |
Path |
What it does |
GET |
/overview |
Domains, eggs, Cloudflare status and the 500 newest subdomains |
POST |
/verify |
Checks the saved Cloudflare credentials |
POST |
/domains |
Adds a domain |
PATCH |
/domains/{domain} |
Edits a domain |
DELETE |
/domains/{domain} |
Deletes a domain and its subdomains |
Server routes
These routes are used by the Subdomains page. They live under /api/client/servers/{server}/extensions/subdomain-manager.
| Method |
Path |
What it does |
GET |
/ |
Domains available for the egg of the server and the subdomains of the server |
POST |
/ |
Creates a subdomain. Body: subdomain and domain_id. |
DELETE |
/{subdomain} |
Removes a subdomain of this server |
Limits
| Item |
Value |
| Subdomain length |
2 to 32 characters |
| Subdomains per server |
Max subdomains per server, default 1, 0 is unlimited |
| TTL of created records |
120 seconds |
| Cloudflare proxy |
Off |
| Request timeout to Cloudflare |
15 seconds |
Data
Domains are stored in subdomain_manager_domains and subdomains in subdomain_manager_subdomains. A subdomain row keeps the Cloudflare record IDs, the address, the port and the record type. When a server is deleted, its subdomains and DNS records are removed.