Тип сервиса
Сервис Ghost
Самостоятельно размещаемый сервис публикаций Ghost для блогов и контентных сайтов с постоянным хранилищем контента и связями с MySQL и транзакционной почтой.
Вы добавляете этот сервис в стек и выбираете там его версию и ресурсы. Каждое окружение может их переопределить.
На этой странице
В StackMaster
Как Ghost работает в StackMaster
ghost image; all of the configuration below is passed as environment variables, which Ghost reads as configuration keys with __ between nested levels.Linked services
| Link | Variables |
|---|---|
| MySQL database (required) | database__client, database__connection__host, database__connection__port, database__connection__user, database__connection__password, database__connection__database |
| Mail transfer agent (required) | mail__transport, mail__options__host, mail__options__port, mail__options__secure |
Mail goes to the linked mail service over SMTP without TLS or credentials. Do not add database or SMTP settings elsewhere.
URL and server
urlis the environment's primary URL. Ghost uses it for links, so it changes with the primary host.- Ghost listens on
server__hostandserver__port, port 2368, which is the service's endpoint.NODE_ENVisproduction. - The setting "Email sender" (required) sets
mail__from. - The setting "Verify new devices by email" sets
security__staffDeviceVerification. It defaults tofalse, because with it on, staff signing in from a new device need a code sent by email, and without working mail delivery they cannot sign in. Set it totrueonce mail is delivered.
Changing configuration
Add or change environment variables on the service, using the same section__key form, and deploy the service. Do not edit config.production.json in the container: it is not on a volume.
Data
- The
contentvolume is mounted at/var/lib/ghost/content: images, themes and other content files. Posts, users and settings are in the linked MySQL database. - The manifest declares a content import into that directory (
tar,tar.gz,tgz,zip) and a content backup of it. Neither includes the database. - The manifest creates no administrator account: the owner account is created in the browser at
/ghoston first use.
Обзор
Технический профиль Ghost
Версии
Репозиторий исходного кода
Публичный Helm-чарт
Постоянные тома
Стеки
Стеки, в которые входит Ghost
Данные
Резервные копии и импорт данных: Ghost
Резервные копии вручную и по расписанию
Создавайте резервную копию, когда она нужна, или задайте расписание в пресете резервного копирования.
Импорт из архива, по URL или из резервной копии
Источником импорта может быть загруженный архив, публичный URL или готовая резервная копия совместимого сервиса.
Где хранятся архивы
StackMaster записывает каждый архив в StackMaster Blob Storage или в бакет у провайдера хранилища, подключённого как интеграция.
Конфигурация
Конфигурация сервиса Ghost
Технические домены
Тома
Настройки
Связи сервиса
Каждая связь — это подключение Ghost к другому сервису. На какой сервис указывает связь, задаёт стек. На карточках перечислены публичные сервисы, которые подходят для каждой связи.
db
Сервисы, которые подходят для этой связи
sendmail
Сервисы, которые подходят для этой связи