This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "issues", | |
"fields": [ | |
{ | |
"name": "thread_id", | |
"type": "string", | |
"facet": true, | |
"optional": false, | |
"index": true, | |
"sort": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "wa_conversations", | |
"fields": [ | |
{ | |
"name": "contacts.wa_id", | |
"type": "string", | |
"facet": true, | |
"optional": false, | |
"index": true, | |
"sort": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: GPT Action Feedback | |
Description: Allows custom GPTs to report issues or concerns via a REST API endpoint, restricted to users with a specific capability. | |
Version: 1.0 | |
Author: RA | |
*/ | |
// Register the custom REST API endpoint only when the plugin is active. | |
add_action('rest_api_init', 'gpt_register_feedback_endpoint'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script updates file ownership and permissions for a WordPress installation | |
# located in the specified base directory. It ensures that the directories and files | |
# are owned by 'www-data', making them accessible for a WordPress instance running | |
# as 'www-data' inside a Docker container, while allowing the 'wc' user to edit them. | |
# | |
# The script performs the following actions: | |
# 1. Changes ownership of plugins, themes, uploads, wp-config.php, and .htaccess to 'www-data'. | |
# 2. Adds the 'wc' user to the 'www-data' group for edit permissions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
components: | |
schemas: | |
WPError: | |
properties: | |
additional_data: | |
description: Additional data of the error | |
type: any | |
additional_errors: | |
description: More errors | |
items: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.1.0 | |
info: | |
summary: OpenAPI for the WP/WC (basic product management). Based on the doc from the WP plug-in by Schneider & Schuetz GmbH. | |
title: wc/v3 | |
version: '1' | |
servers: | |
- url: *************************** | |
security: | |
- basicAuth: [] | |
components: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run as: | |
# TRAEFIK_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' traefik) docker-compose --env-file ./env/nairobi/.env -f ./marketplaces/nairobi/docker-compose.yml up -d | |
services: | |
wordpress: | |
image: wordpress:latest | |
container_name: wordpress_nairobi | |
restart: always | |
environment: | |
WORDPRESS_DB_HOST: "${MYSQL_HOST:?Please set MYSQL_HOST in .env or Docker Compose configuration.}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
adminer: | |
image: adminer | |
container_name: adminer | |
environment: | |
- ADMINER_DEFAULT_SERVER=db_nairobi # MySQL container name on internal_nairobi network | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.adminer.rule=Host(`${ADMINER_HOST}`)" # Uses host from env file | |
- "traefik.http.routers.adminer.entrypoints=websecure" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
db_nairobi: | |
image: mysql:8.1 | |
container_name: db_nairobi | |
restart: always | |
environment: | |
MYSQL_DATABASE: ${MYSQL_DATABASE} | |
MYSQL_USER: ${MYSQL_USER} | |
MYSQL_PASSWORD: ${MYSQL_PASSWORD} | |
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
traefik: | |
image: traefik:v3.1.4 | |
container_name: traefik | |
restart: always | |
command: | |
- "--api.dashboard=true" | |
- "--providers.docker=true" | |
- "--providers.docker.exposedbydefault=false" | |
- "--entrypoints.web.address=:80" |
NewerOlder