Skip to content

About

Full fledged hosting platform running on Linux and Kubernetes

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

HostingPanel

License: AGPL-3.0-only

Buy Me a Coffee

HostingPanel is an open-source, backend-independent web hosting control panel built with .NET 10, ASP.NET Core and Blazor Server. It provides a single administration interface and a DirectAdmin-compatible API for managing hosting infrastructure.

Use HostingPanel with an existing DirectAdmin server, or deploy a standalone Kubernetes hosting platform for websites, DNS, databases, mail and SFTP without a DirectAdmin installation.

Features

  • Responsive, authenticated web interface with administrator, reseller and hosting-account management workflows.
  • Account and package details, hosting limits, domain management, DNS zones and records, database inventory, file-access management, and support tickets.
  • Server administration screens for system information, services, settings, updates, TLS and security.
  • Backend-managed authentication and authorization, with cookie-based panel sessions.
  • English and Dutch localization using .NET resource files.
  • DirectAdmin-compatible REST endpoints, additional provider-neutral hosting operations, and self-hosted Swagger UI.

Availability of individual operations depends on the selected backend. The interface does not assume that every provider supports every feature.

Hosting backends

DirectAdmin

Connect to an existing DirectAdmin installation over HTTPS. HostingPanel delegates operations to DirectAdmin using the caller's credentials, including delegated credentials when impersonation is supported. DirectAdmin remains authoritative for account permissions, resource ownership and hosting configuration.

The provider uses modern API forwarding and dedicated legacy adapters for accounts, resellers, websites, DNS, databases, FTP and support. DirectAdmin also handles server administration and TLS. No local mirror of DirectAdmin's hosting database is required. See the DirectAdmin backend guide for the concrete service map, API contracts and workflows.

Kubernetes

Kubernetes is a standalone hosting backend. It persists desired state in SQLite and uses durable operations, channels and Kubernetes watches to reconcile infrastructure through the Kubernetes .NET SDK.

  • Web hosting: shared Apache StatefulSet, immutable configuration revisions on a dedicated NFS export, validated graceful reload and rollback, Gateway API routing through Envoy, and DirectAdmin-compatible customer directory layouts.
  • PHP: dedicated PHP-FPM Deployment, Service and ingress NetworkPolicy per hosting account, account-specific UID/GID and storage mount, configurable trusted images and package/account resource settings.
  • Domains and DNS: domain and subdomain lifecycle, parent-domain ownership checks, PowerDNS zone and record management, and automatic zone provisioning.
  • TLS: event-driven cert-manager integration for domain certificates and Gateway API listener lifecycle.
  • Databases: MariaDB database and user provisioning with separate persistent storage when configured.
  • Mail: Stalwart v1 mailbox management, password changes, aliases, forwarders, mailbox and forwarder entitlements, automatic mail DNS publication and native DKIM management when configured. Mail mutations currently require an administrator.
  • File access: ProFTPD mod_sftp with public-key-only virtual accounts, scoped filesystem access, account/key limits and asynchronous account reconciliation. FTP compatibility operations map to SFTP, not an FTP wire-protocol service.
  • Operations: account and reseller packages, persistent support tickets with channel-driven notifications, customer access/error logs and monthly HTTP usage reporting; optional durable Apache accounting spool.

Deployment maturity

The backend provides standalone hosting functionality. Live installation and SFTP public-key authentication/directory listing have been exercised on a single-node environment. Deployment-specific production acceptance remains necessary: verify cross-account isolation and CNI policy enforcement, file transfers, mail delivery, public DNS and TLS, failure recovery, capacity, and off-host backup/restore. Kubernetes supports administrator/reseller login-as within the authorized account hierarchy, including the official DirectAdmin login-as switch, return and user-list routes; see authentication. Not all package limits or DirectAdmin operations are supported or enforced. Accepted asynchronous operations do not prove serving readiness.

See the capability inventory, Kubernetes hosting guide and installer recovery guide for implementation and validation boundaries.

Architecture

The UI and API run in one ASP.NET Core host, HostingPanel.Web. Controllers and operation services use independent backend capabilities registered via DI. DirectAdmin remains authoritative for its resources; Kubernetes uses the common SQLite persistence model and asynchronous reconciliation.

See current architecture, capabilities and configuration ownership.

Getting started

Install on a clean server (K3s)

For a complete standalone hosting environment, use the automated clean-server installation guide. The installer supports Ubuntu 24.04/26.04 LTS and Debian 12/13 and sets up K3s, ZFS storage, NFS/iSCSI, democratic-csi, Envoy Gateway, cert-manager, PowerDNS, MariaDB, Stalwart, ProFTPD SFTP and HostingPanel. The storage role also configures local ZFS snapshot retention and ClamAV scanning. Stalwart management requires initial setup and a dedicated API credential.

Start on a dedicated test server or virtual machine with at least 8 GiB nominal RAM, 25 GiB available root filesystem space and an unused extra disk (or an existing suitable ZFS pool). Read the installation guide before proceeding; disk initialization requires explicit confirmation.

sudo apt-get update
sudo apt-get install -y git
git clone https://github.com/aslomp/hostingPanel.git
cd hostingPanel
sudo bash installer/install.sh --full-server --new-cluster

The installer prompts for the ACME email, nameserver hostnames and panel hostname. Initial HTTPS uses a self-signed certificate. For retries on an existing cluster, omit --new-cluster.

See the installation guide for administrator login, verification, separate storage and additional worker nodes. If you already operate a Kubernetes cluster (including MicroOS nodes), use the Helm deployment instructions below instead; the clean-server installer is not a MicroOS installer. The installer includes storage write/remount, gateway, certificate and panel health checks. Complete the documented deployment-specific acceptance and recovery tests before serving customers.

Run locally

Requirements: Git and the .NET 10 SDK. Configure a trusted HTTPS development certificate for local use.

git clone https://github.com/aslomp/hostingPanel.git
cd hostingPanel

export HostingPanel__Backend=DirectAdmin
export DirectAdmin__BaseUrl=https://your-directadmin-host.example:2222/

dotnet run --project src/HostingPanel.Web --urls https://localhost:7201

Open https://localhost:7201 and sign in with your DirectAdmin credentials. Both the UI and API are served by this application.

Docker Compose

cd deploy/compose
cp .env.example .env
# Configure the selected backend and its connection settings in .env.
docker compose up -d --build

The default port is 8080, bound to loopback. Configure HTTPS through a trusted reverse proxy for normal browser login and remote access.

Kubernetes / Helm

Build and publish the single application image to your container registry. The Helm chart supports both backend modes.

For Kubernetes website hosting, configure an existing Gateway API/Envoy installation, a dedicated NFS export, authorized directory provisioning, a persistent SQLite volume and a bootstrap administrator secret.

cp deploy/helm/values-hosting.example.yaml hosting-values.yaml
# Set your image, NFS, Gateway and secret references in hosting-values.yaml.

helm upgrade --install admin deploy/helm/hostingpanel \
  --namespace hosting --create-namespace \
  -f hosting-values.yaml

The hosting profile enables the Kubernetes backend and shared Apache with dedicated account PHP-FPM workloads. Its registry image is an example override; use an image you have built and published from the corresponding source revision. See the hosting deployment guide for prerequisites and storage permissions.

API

Endpoint Purpose
/swagger Interactive Swagger UI
/openapi/directadmin.json Pinned DirectAdmin Swagger 2.0 specification
/api/* Explicit DirectAdmin-compatible routes
/hosting/* Additional hosting management operations
/healthz Application health endpoint

The published specification describes the DirectAdmin compatibility contract; it is not a guarantee that every operation is implemented by every backend. Unsupported provider operations return an appropriate error rather than synthetic success.

Development

dotnet build src/HostingPanel.Web -c Release
dotnet run --project tests/HostingPanel.ContractTests -c Release
dotnet run --project tests/HostingPanel.ApiIntegrationTests -c Release

GitHub Actions builds the providers independently and runs contract, API integration, authentication and deployment checks. Contributions should preserve backend independence, explicit API contracts and backend-owned authorization.

Documentation

Start with the documentation index. Contributors and coding agents must follow AGENTS.md. Current architecture, configuration and capability pages are distinct from plans and historical snapshots.

License and support

HostingPanel is licensed under the GNU Affero General Public License, version 3 only (AGPL-3.0-only). See LICENSE. This applies to original HostingPanel code unless explicitly stated otherwise; third-party components retain their own licenses.

The project is provided without commercial support, SLAs, or guaranteed maintenance. Donations are entirely voluntary and do not create support obligations.

About

Full fledged hosting platform running on Linux and Kubernetes

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages