# Self-hosting and operations

Plan an Enterprise AppPortal deployment with clear configuration, secret custody, backup, restore and incident responsibilities.

Source: https://appportal.io/docs/enterprise/self-hosting

An Enterprise self-hosted installation runs the AppPortal platform in your agreed infrastructure.
It is distinct from connecting a customer-owned telemetry database or object bucket to AppPortal's
managed service. Self-hosting and air-gapped deployment each require their explicit Enterprise
agreement entitlement.

## Define the installation boundary

Agree on the supported topology, regions, domains, identity provider, network access and operational
owners before provisioning. AppPortal's production composition uses Aspire with Azure Container Apps,
PostgreSQL, object storage, ingestion transport and managed secret storage. Serving the web interface
alone does not provide the platform's authentication, processing, persistence or background services.

A DevSpace container is a local development tool, not a production AppPortal installation. Bringing
a database moves its agreed records, while bringing object storage moves eligible files; neither
choice automatically moves identity, billing, ingestion buffers or other platform services.

## Configure services and secrets

Use the installation's approved configuration inventory and deployment identity. Keep secret values
in its managed secret store and server configuration. SDK app credentials, staff sign-in, customer
identity, service authentication and provider credentials have separate purposes and scopes.
Database or storage credentials never belong in browser configuration, an SDK bundle or a support
message.

Register exact HTTPS origins and callback URLs for the deployed surfaces. Configure mail through
Postmark with the branded AppPortal sender domain. Validate each enabled provider and payment path
in its approved environment before admitting users; accepting configuration is not delivery or
payment confirmation.

## Deploy and verify

Use a reviewed build and the installation's authorized deployment pipeline. Review additive schema
changes, migration ordering and rollback compatibility before rollout. Isolate local validation from
retained data: a development start can run migration and seed code, so a new process or container
name is not proof of a new database.

Verify readiness, authenticated product reads, ingestion-to-query flow and the exact selected
storage route. Retain the build identity, migration result and verification evidence. Health checks
alone do not establish role authorization, successful payment or data recovery.

## Back up and restore

Assign backup ownership separately for platform databases, customer-owned databases, object files
and secret/key recovery. Define the intended recovery point and acceptable recovery time for each.
Preserve database base backups and the required transaction log chain for point-in-time recovery;
a logical export alone is not point-in-time recovery.

Restore first into an isolated destination. Validate database identities, schema, latest accepted
transactions and application routing before switching traffic. Keep the original copy until the
restore is accepted. Measure recovery time in the actual target environment rather than treating a
development drill as a production guarantee.

## Run the installation

Monitor service health, ingestion backlog, provider failures, database capacity, retention progress
and backup age. Keep incident narrative customer-safe and diagnostic details within authorized staff
tools. Use durable operation state to reconcile uncertain provider outcomes; repeated calls are not
a substitute for knowing whether the first call succeeded.

Agree on upgrade windows, key rotation, on-call ownership and recovery exercises with the
[Enterprise team](https://appportal.io/contact). Use the [operator guide](https://appportal.io/docs/enterprise/operator-guide) for workspace
administration and [service connection guide](https://appportal.io/docs/enterprise/connect-your-services) for customer-owned
destination changes.
