diff --git a/website/docs/admin/domains/domains.md b/website/docs/admin/domains/domains.md new file mode 100644 index 00000000..391105ea --- /dev/null +++ b/website/docs/admin/domains/domains.md @@ -0,0 +1,102 @@ +--- +sidebar_position: 1 +--- + +# Domains + +Domains page displays all domains currently hosted on server. + + +## List domains + + + + + +To list all current domains navigate to Domains page: + + +| Field | Description | +| ------------------ | ------------------------------------------------------------------------- | +| **ID** | ID of the domain in database. | +| **Domain Name** | The domain name. | +| **Owner** | User that added the domain. | +| **DNS Zone** | View and edit DNS zone for domain. | +| **Virtual Hosts** | View and edit Nginx configuration for a domain. | +| **Access Logs** | View live access log for the domain. | +| **Visitors Report** | Total number of domain names allowed per user on the plan. | + + + + + +To list all current domains run: + +```bash +opencli domains-all +``` + +Example output: +```bash +opencli domains-all +stefan.openpanel.org +pejcic.rs +nesto.com +pcx3.com +``` + + + + +## Add domain + + + + + +Domains can only be added [from the user interface](/docs/panel/domains/#adding-a-domain). + + + + +To create a new plan run the following command: + +```bash +opencli domains-add [--debug] +``` + +Example: +```bash +root@stefan:/usr/local/admin# opencli domains-add pejcci.rs wzs11p2i --debug +Checking if domain already exists on the server +Adding pejcci.rs to the domains database +Purging cached list of domains for the account +Creating document root directory /home/wzs11p2i/pejcci.rs +Checking webserver configuration +Checking if default vhosts file exists for Nginx +Checking IPv4 address for the account +Creating /etc/nginx/sites-available/pejcci.rs.conf +Restarting nginx to apply changes +Creating vhosts proxy file for Nginx +Webserver is running, reloading configuration +Creating DNS zone file: /etc/bind/zones/pejcci.rs.zone +DNS service is running, adding the zone +Adding the newly created zone file to the DNS server +Checking and setting nginx service to automatically start on reboot +Starting service for the default PHP version 8.2 +Checking and setting PHP service to automatically start on reboot +Checking and starting the ssl generation service +Starting Let'sEncrypt SSL generation in background +Domain pejcci.rs added successfully +``` + + + + +## Move domain + +This is currently not possible. + +## Delete domain + +Domains can currently be deleted only [from the user interface](/docs/panel/domains/#delete-a-domain).