Vigiar
1
0
Derivar
Você já tinha feito uma derivação do repositório wordpress-status-plugin, anteriormente
0
wordpress-status-plugin/README.md
2026-12-01 15:26:34 +02:00

58 linhas
3,3 KiB
Markdown

<p align="center"><img src="assets/logo.png" alt="Interweb" width="280"></p>
# Interweb Angola WordPress status plugin
<!-- badges:start -->
[![Release](https://git.interweb.ao/interweb-ao/wordpress-status-plugin/badges/release.svg)](https://git.interweb.ao/interweb-ao/wordpress-status-plugin/releases) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
<!-- badges:end -->
[Português](README-pt.md)
<!-- kb:start -->
Step-by-step guide in our [Knowledgebase](https://www.meu.interweb.ao/knowledgebase/3354?language=english).
<!-- kb:end -->
> API: `https://api.interweb.ao`, built in. Create your key in the [API Center](https://www.meu.interweb.ao/api-center.php) of Meu Interweb. Documentation: https://docs.interweb.ao
WordPress plugin that shows the live status of your services. It uses only our public API, with your account key. Works in Portuguese and English.
## What it does
- A status box for any page, as a block or shortcode: the API, and the hosting, servers and domains you choose.
- You give each item the name visitors see. IP addresses and other details stay hidden.
- It refreshes by itself (every 60 seconds by default) and pauses while the tab is hidden.
- A general line on top: everything working, something needs attention, or a problem.
- Domains close to expiry show as a warning.
- An optional link to the status page of the brand and a box on the WordPress dashboard.
## Shortcodes
Each shortcode also has a block in the editor, with the same options.
- `[interweb_ao_service_status]`: Live status of the API, hosting, servers and domains chosen in the settings.
Options: `title`, `show`, `refresh` (default `60`).
## Install
1. Download the ZIP of the latest release and upload it in Plugins > Add New > Upload Plugin (or copy the `interweb-ao-status` folder to `wp-content/plugins/`).
2. Activate the plugin and open Settings > Interweb Angola Status.
3. Paste the API key and save. The key is checked with the API right away.
## Languages
- The code is in English. Translations are gettext files in `interweb-ao-status/languages` (`.pot`, and `.po` with `.mo` for `pt_PT`, `pt_BR` and `pt_AO`).
- "Same as WordPress" follows the WordPress language; "Português" or "English" fixes the plugin language.
- After changing texts: `python3 -I tools/i18n-check.py --pot`, translate in the `.po` files, `python3 -I tools/build-mo.py` and `python3 -I tools/i18n-check.py`.
## The key
- Create it in the [API Center](https://www.meu.interweb.ao/api-center.php) of Meu Interweb, with `hosting:read`, `vps:read` and `domains:read` (only the ones for what you show).
- When you save it, the plugin asks the API about it: a wrong, revoked or expired key is not saved, and missing permissions or a Sandbox key are said right away.
- It is stored encrypted (AES-256-GCM, with the WordPress security keys) and never shown again. You can define `INTERWEB_AO_STATUS_API_KEY` in `wp-config.php` instead.
## Good to know
- The state is read once per refresh time, with one call per type, whatever the number of visitors.
- The API line uses `GET /v1/ping`, which works without a key.
- Optional constants in `wp-config.php`: `INTERWEB_AO_STATUS_API_KEY`, `INTERWEB_AO_STATUS_ENCRYPTION_KEY`.
Requirements: WordPress 6.0 or newer, PHP 7.4 to 8.5, OpenSSL extension.
---
Maintained by RLX Holdings.