move default config to config.default.php
This commit is contained in:
@@ -0,0 +1,114 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configuration par défaut de kaubuntu.re
|
||||||
|
*
|
||||||
|
* Ce fichier contient les paramètres de configuration par défaut.
|
||||||
|
* Il est utilisé pour initialiser les variables non définies dans config.local.php.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('APP_HOST_NAME')) define('APP_HOST_NAME', 'kaubuntu.re');
|
||||||
|
|
||||||
|
// Configuration de base - ces valeurs seront utilisées si elles ne sont pas définies dans config.local.php
|
||||||
|
if (!defined('PEERTUBE_URL')) define('PEERTUBE_URL', 'https://video.off-investigation.fr');
|
||||||
|
if (!defined('PEERTUBE_DISPLAY_NAME')) define('PEERTUBE_DISPLAY_NAME', 'video.off-investigation.fr');
|
||||||
|
if (!defined('API_KEY')) define('API_KEY', '');
|
||||||
|
if (!defined('TAG_INDEPENDENCE')) define('TAG_INDEPENDENCE', 'indépendance');
|
||||||
|
if (!defined('SHORTS_MAX_DURATION')) define('SHORTS_MAX_DURATION', 120); // 2 minutes max pour les shorts
|
||||||
|
|
||||||
|
// Pagination et affichage
|
||||||
|
if (!defined('COUNT_VIDEO_SEARCH')) define('COUNT_VIDEO_SEARCH', 20);
|
||||||
|
if (!defined('VIDEOS_PER_PAGE')) define('VIDEOS_PER_PAGE', 12);
|
||||||
|
if (!defined('FEATURED_VIDEOS_COUNT')) define('FEATURED_VIDEOS_COUNT', 6);
|
||||||
|
if (!defined('RECENT_VIDEOS_COUNT')) define('RECENT_VIDEOS_COUNT', 6);
|
||||||
|
if (!defined('SHORTS_COUNT')) define('SHORTS_COUNT', 6);
|
||||||
|
if (!defined('SHORTS_COUNT_SEARCH')) define('SHORTS_COUNT_SEARCH', 100);
|
||||||
|
if (!defined('TRENDING_VIDEOS_COUNT')) define('TRENDING_VIDEOS_COUNT', 6);
|
||||||
|
if (!defined('INDEPENDENCE_VIDEOS_COUNT')) define('INDEPENDENCE_VIDEOS_COUNT', 6);
|
||||||
|
if (!defined('CATEGORY_VIDEOS_COUNT')) define('CATEGORY_VIDEOS_COUNT', 6);
|
||||||
|
if (!defined('LOAD_MORE_COUNT')) define('LOAD_MORE_COUNT', 6);
|
||||||
|
|
||||||
|
// Catégories prioritaires avec noms personnalisés (dans l'ordre d'affichage souhaité)
|
||||||
|
// format: [ID catégorie => Nom personnalisé]
|
||||||
|
if (!defined('PRIORITY_CATEGORIES')) {
|
||||||
|
define('PRIORITY_CATEGORIES', [
|
||||||
|
11 => 'Actualité & Politique', // News & Politique
|
||||||
|
14 => 'Activisme', // Activism
|
||||||
|
1 => 'Musique', // Musique
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// =========================================
|
||||||
|
// Configuration Mastodon
|
||||||
|
// =========================================
|
||||||
|
if (!defined('MASTODON_INSTANCE_URL')) define('MASTODON_INSTANCE_URL', 'https://mamot.fr');
|
||||||
|
if (!defined('MASTODON_DATE_FORMAT')) define('MASTODON_DATE_FORMAT', 'fr-FR');
|
||||||
|
if (!defined('MASTODON_BTN_SEE_MORE')) define('MASTODON_BTN_SEE_MORE', 'Voir plus de post');
|
||||||
|
if (!defined('MASTODON_BTN_RELOAD')) define('MASTODON_BTN_RELOAD', 'Rafraichir');
|
||||||
|
if (!defined('MASTODON_MAX_POST_FETCH')) define('MASTODON_MAX_POST_FETCH', '10');
|
||||||
|
if (!defined('MASTODON_MAX_POST_SHOW')) define('MASTODON_MAX_POST_SHOW', '10');
|
||||||
|
|
||||||
|
// Informations du site
|
||||||
|
if (!defined('SITE_NAME')) define('SITE_NAME', 'kaubuntu.re');
|
||||||
|
if (!defined('SITE_DESCRIPTION')) define('SITE_DESCRIPTION', 'Votre plateforme de médias libres');
|
||||||
|
if (!defined('SITE_LOGO')) define('SITE_LOGO', 'img/logo.png');
|
||||||
|
if (!defined('SITE_FAVICON')) define('SITE_FAVICON', 'img/favicon.png');
|
||||||
|
|
||||||
|
// Réseaux sociaux
|
||||||
|
if (!defined('FACEBOOK_URL')) define('FACEBOOK_URL', '#');
|
||||||
|
if (!defined('X_URL')) define('X_URL', '#');
|
||||||
|
if (!defined('INSTAGRAM_URL')) define('INSTAGRAM_URL', '#');
|
||||||
|
if (!defined('YOUTUBE_URL')) define('YOUTUBE_URL', '#');
|
||||||
|
if (!defined('TIKTOK_URL')) define('TIKTOK_URL', '#');
|
||||||
|
|
||||||
|
// Contacts
|
||||||
|
if (!defined('CONTACT_EMAIL')) define('CONTACT_EMAIL', 'contact@kaubuntu.re');
|
||||||
|
|
||||||
|
// Mentions légales
|
||||||
|
if (!defined('LEGAL_COPYRIGHT')) define('LEGAL_COPYRIGHT', 'Ka-Ubuntu');
|
||||||
|
if (!defined('LEGAL_WEBMASTER_NAME')) define('LEGAL_WEBMASTER_NAME', 'Cédric Famibelle-Pronzola');
|
||||||
|
if (!defined('LEGAL_WEBMASTER_EMAIL')) define('LEGAL_WEBMASTER_EMAIL', 'contact@cedric-pronzola.re');
|
||||||
|
if (!defined('LEGAL_HOST_NAME')) define('LEGAL_HOST_NAME', 'o2Switch');
|
||||||
|
if (!defined('LEGAL_HOST_COMPANY')) define('LEGAL_HOST_COMPANY', 'société au capital de 100 000 €');
|
||||||
|
if (!defined('LEGAL_HOST_RCS')) define('LEGAL_HOST_RCS', 'immatriculée au RCS de Clermont-Ferrand sous le numéro 510 909 807');
|
||||||
|
if (!defined('LEGAL_HOST_ADDRESS')) define('LEGAL_HOST_ADDRESS', '222 boulevard Gustave Flaubert, 63000 Clermont-Ferrand, France');
|
||||||
|
if (!defined('LEGAL_CONTACT_EMAIL')) define('LEGAL_CONTACT_EMAIL', 'zinfos@kaubuntu.com');
|
||||||
|
if (!defined('LEGAL_LICENSE')) define('LEGAL_LICENSE', 'GNU Affero General Public License version 3 (AGPL-V3)');
|
||||||
|
if (!defined('LEGAL_LICENSE_URL')) define('LEGAL_LICENSE_URL', 'https://www.gnu.org/licenses/agpl-3.0.html');
|
||||||
|
if (!defined('LEGAL_SOURCE_CODE_URL')) define('LEGAL_SOURCE_CODE_URL', 'https://codeberg.org/Ka-Ubuntu/kaubuntu.re');
|
||||||
|
if (!defined('LEGAL_SERVICE_DESCRIPTION')) define('LEGAL_SERVICE_DESCRIPTION', 'est une plateforme multimédia proposant des contenus vidéo, des actualités et des informations liées au mouvement politique indépendantiste et panafricaniste réunionnais Ka-Ubuntu.');
|
||||||
|
|
||||||
|
// Fonctionnalités
|
||||||
|
define('ENABLE_SEARCH', true);
|
||||||
|
if (!defined('ENABLE_USER_ACCOUNTS')) define('ENABLE_USER_ACCOUNTS', false);
|
||||||
|
|
||||||
|
// Cache
|
||||||
|
if (!defined('CACHE_ENABLED')) define('CACHE_ENABLED', false);
|
||||||
|
if (!defined('CACHE_DURATION')) define('CACHE_DURATION', 3600); // En secondes (1 heure)
|
||||||
|
|
||||||
|
// Compte pour les lives
|
||||||
|
if (!defined('LIVE_ACCOUNT_NAME')) define('LIVE_ACCOUNT_NAME', 'admin');
|
||||||
|
|
||||||
|
// Tags pour filtrer les vidéos selon les catégories
|
||||||
|
if (!defined('TAG_SHORT')) define('TAG_SHORT', 'short');
|
||||||
|
|
||||||
|
// Hashtags importants à afficher dans la sidebar, footer et menu mobile
|
||||||
|
if (!defined('IMPORTANT_TAGS')) {
|
||||||
|
define('IMPORTANT_TAGS', [
|
||||||
|
'Colonialisme',
|
||||||
|
'La Réunion',
|
||||||
|
'Panafricanisme',
|
||||||
|
'Conférence'
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hashtags populaires à afficher sur la page d'accueil
|
||||||
|
if (!defined('POPULAR_TAGS')) {
|
||||||
|
define('POPULAR_TAGS', [
|
||||||
|
'Justice',
|
||||||
|
'Anticolonial',
|
||||||
|
'Kanaky',
|
||||||
|
'Océan Indien'
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
?>
|
||||||
+4
-109
@@ -1,10 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Configuration de kaubuntu.re
|
|
||||||
*
|
|
||||||
* Ce fichier contient les paramètres de configuration pour connecter
|
|
||||||
* la plateforme à une instance PeerTube et personnaliser le site.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Charger d'abord la configuration locale si elle existe
|
// Charger d'abord la configuration locale si elle existe
|
||||||
$config_local_file = __DIR__ . '/config.local.php';
|
$config_local_file = __DIR__ . '/config.local.php';
|
||||||
@@ -12,109 +6,10 @@ if (file_exists($config_local_file)) {
|
|||||||
require_once $config_local_file;
|
require_once $config_local_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!defined('APP_HOST_NAME')) define('APP_HOST_NAME', 'kaubuntu.re');
|
// Charger la configuration par défaut si elle existe
|
||||||
|
$config_default_file = __DIR__ . '/config.default.php';
|
||||||
// Configuration de base - ces valeurs seront utilisées si elles ne sont pas définies dans config.local.php
|
if (file_exists($config_default_file)) {
|
||||||
if (!defined('PEERTUBE_URL')) define('PEERTUBE_URL', 'https://video.off-investigation.fr');
|
require_once $config_default_file;
|
||||||
if (!defined('PEERTUBE_DISPLAY_NAME')) define('PEERTUBE_DISPLAY_NAME', 'video.off-investigation.fr');
|
|
||||||
if (!defined('API_KEY')) define('API_KEY', '');
|
|
||||||
if (!defined('TAG_INDEPENDENCE')) define('TAG_INDEPENDENCE', 'indépendance');
|
|
||||||
if (!defined('SHORTS_MAX_DURATION')) define('SHORTS_MAX_DURATION', 120); // 2 minutes max pour les shorts
|
|
||||||
|
|
||||||
// Pagination et affichage
|
|
||||||
if (!defined('COUNT_VIDEO_SEARCH')) define('COUNT_VIDEO_SEARCH', 20);
|
|
||||||
if (!defined('VIDEOS_PER_PAGE')) define('VIDEOS_PER_PAGE', 12);
|
|
||||||
if (!defined('FEATURED_VIDEOS_COUNT')) define('FEATURED_VIDEOS_COUNT', 6);
|
|
||||||
if (!defined('RECENT_VIDEOS_COUNT')) define('RECENT_VIDEOS_COUNT', 6);
|
|
||||||
if (!defined('SHORTS_COUNT')) define('SHORTS_COUNT', 6);
|
|
||||||
if (!defined('SHORTS_COUNT_SEARCH')) define('SHORTS_COUNT_SEARCH', 100);
|
|
||||||
if (!defined('TRENDING_VIDEOS_COUNT')) define('TRENDING_VIDEOS_COUNT', 6);
|
|
||||||
if (!defined('INDEPENDENCE_VIDEOS_COUNT')) define('INDEPENDENCE_VIDEOS_COUNT', 6);
|
|
||||||
if (!defined('CATEGORY_VIDEOS_COUNT')) define('CATEGORY_VIDEOS_COUNT', 6);
|
|
||||||
if (!defined('LOAD_MORE_COUNT')) define('LOAD_MORE_COUNT', 6);
|
|
||||||
|
|
||||||
// Catégories prioritaires avec noms personnalisés (dans l'ordre d'affichage souhaité)
|
|
||||||
// format: [ID catégorie => Nom personnalisé]
|
|
||||||
if (!defined('PRIORITY_CATEGORIES')) {
|
|
||||||
define('PRIORITY_CATEGORIES', [
|
|
||||||
11 => 'Actualité & Politique', // News & Politique
|
|
||||||
14 => 'Activisme', // Activism
|
|
||||||
1 => 'Musique', // Musique
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// =========================================
|
|
||||||
// Configuration Mastodon
|
|
||||||
// =========================================
|
|
||||||
if (!defined('MASTODON_INSTANCE_URL')) define('MASTODON_INSTANCE_URL', 'https://mamot.fr');
|
|
||||||
if (!defined('MASTODON_DATE_FORMAT')) define('MASTODON_DATE_FORMAT', 'fr-FR');
|
|
||||||
if (!defined('MASTODON_BTN_SEE_MORE')) define('MASTODON_BTN_SEE_MORE', 'Voir plus de post');
|
|
||||||
if (!defined('MASTODON_BTN_RELOAD')) define('MASTODON_BTN_RELOAD', 'Rafraichir');
|
|
||||||
if (!defined('MASTODON_MAX_POST_FETCH')) define('MASTODON_MAX_POST_FETCH', '10');
|
|
||||||
if (!defined('MASTODON_MAX_POST_SHOW')) define('MASTODON_MAX_POST_SHOW', '10');
|
|
||||||
|
|
||||||
// Informations du site
|
|
||||||
if (!defined('SITE_NAME')) define('SITE_NAME', 'kaubuntu.re');
|
|
||||||
if (!defined('SITE_DESCRIPTION')) define('SITE_DESCRIPTION', 'Votre plateforme de médias libres');
|
|
||||||
if (!defined('SITE_LOGO')) define('SITE_LOGO', 'img/logo.png');
|
|
||||||
if (!defined('SITE_FAVICON')) define('SITE_FAVICON', 'img/favicon.png');
|
|
||||||
|
|
||||||
// Réseaux sociaux
|
|
||||||
if (!defined('FACEBOOK_URL')) define('FACEBOOK_URL', '#');
|
|
||||||
if (!defined('X_URL')) define('X_URL', '#');
|
|
||||||
if (!defined('INSTAGRAM_URL')) define('INSTAGRAM_URL', '#');
|
|
||||||
if (!defined('YOUTUBE_URL')) define('YOUTUBE_URL', '#');
|
|
||||||
if (!defined('TIKTOK_URL')) define('TIKTOK_URL', '#');
|
|
||||||
|
|
||||||
// Contacts
|
|
||||||
if (!defined('CONTACT_EMAIL')) define('CONTACT_EMAIL', 'contact@kaubuntu.re');
|
|
||||||
|
|
||||||
// Mentions légales
|
|
||||||
if (!defined('LEGAL_COPYRIGHT')) define('LEGAL_COPYRIGHT', 'Ka-Ubuntu');
|
|
||||||
if (!defined('LEGAL_WEBMASTER_NAME')) define('LEGAL_WEBMASTER_NAME', 'Cédric Famibelle-Pronzola');
|
|
||||||
if (!defined('LEGAL_WEBMASTER_EMAIL')) define('LEGAL_WEBMASTER_EMAIL', 'contact@cedric-pronzola.re');
|
|
||||||
if (!defined('LEGAL_HOST_NAME')) define('LEGAL_HOST_NAME', 'o2Switch');
|
|
||||||
if (!defined('LEGAL_HOST_COMPANY')) define('LEGAL_HOST_COMPANY', 'société au capital de 100 000 €');
|
|
||||||
if (!defined('LEGAL_HOST_RCS')) define('LEGAL_HOST_RCS', 'immatriculée au RCS de Clermont-Ferrand sous le numéro 510 909 807');
|
|
||||||
if (!defined('LEGAL_HOST_ADDRESS')) define('LEGAL_HOST_ADDRESS', '222 boulevard Gustave Flaubert, 63000 Clermont-Ferrand, France');
|
|
||||||
if (!defined('LEGAL_CONTACT_EMAIL')) define('LEGAL_CONTACT_EMAIL', 'zinfos@kaubuntu.com');
|
|
||||||
if (!defined('LEGAL_LICENSE')) define('LEGAL_LICENSE', 'GNU Affero General Public License version 3 (AGPL-V3)');
|
|
||||||
if (!defined('LEGAL_LICENSE_URL')) define('LEGAL_LICENSE_URL', 'https://www.gnu.org/licenses/agpl-3.0.html');
|
|
||||||
if (!defined('LEGAL_SOURCE_CODE_URL')) define('LEGAL_SOURCE_CODE_URL', 'https://codeberg.org/Ka-Ubuntu/kaubuntu.re');
|
|
||||||
if (!defined('LEGAL_SERVICE_DESCRIPTION')) define('LEGAL_SERVICE_DESCRIPTION', 'est une plateforme multimédia proposant des contenus vidéo, des actualités et des informations liées au mouvement politique indépendantiste et panafricaniste réunionnais Ka-Ubuntu.');
|
|
||||||
|
|
||||||
// Fonctionnalités
|
|
||||||
define('ENABLE_SEARCH', true);
|
|
||||||
if (!defined('ENABLE_USER_ACCOUNTS')) define('ENABLE_USER_ACCOUNTS', false);
|
|
||||||
|
|
||||||
// Cache
|
|
||||||
if (!defined('CACHE_ENABLED')) define('CACHE_ENABLED', false);
|
|
||||||
if (!defined('CACHE_DURATION')) define('CACHE_DURATION', 3600); // En secondes (1 heure)
|
|
||||||
|
|
||||||
// Compte pour les lives
|
|
||||||
if (!defined('LIVE_ACCOUNT_NAME')) define('LIVE_ACCOUNT_NAME', 'admin');
|
|
||||||
|
|
||||||
// Tags pour filtrer les vidéos selon les catégories
|
|
||||||
if (!defined('TAG_SHORT')) define('TAG_SHORT', 'short');
|
|
||||||
|
|
||||||
// Hashtags importants à afficher dans la sidebar, footer et menu mobile
|
|
||||||
if (!defined('IMPORTANT_TAGS')) {
|
|
||||||
define('IMPORTANT_TAGS', [
|
|
||||||
'Colonialisme',
|
|
||||||
'La Réunion',
|
|
||||||
'Panafricanisme',
|
|
||||||
'Conférence'
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Hashtags populaires à afficher sur la page d'accueil
|
|
||||||
if (!defined('POPULAR_TAGS')) {
|
|
||||||
define('POPULAR_TAGS', [
|
|
||||||
'Justice',
|
|
||||||
'Anticolonial',
|
|
||||||
'Kanaky',
|
|
||||||
'Océan Indien'
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Locale et fuseau horaire
|
// Locale et fuseau horaire
|
||||||
|
|||||||
Reference in New Issue
Block a user