souverain/commentairespublic Fork
⑂ v0.2.1
Commits
⬇ Clone ▾
git clone https://git.rickub.com/souverain/commentaires.git
git clone ssh://git@rickub.com/souverain/commentaires.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
Initial release v0.2.1 98f39dd · on v0.2.1 · Souverain · Oct 7, 2026
config-public.php · 40 lines · 850 BPHP Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
// Souverain.ovh

declare(strict_types=1);

require_once __DIR__ . '/lib.php';

header(
    'Content-Type: application/javascript; charset=utf-8'
);
header('Cache-Control: no-store');
header('X-Content-Type-Options: nosniff');

$config = fc_config();

$public = [
    'siteUrl' => fc_site_origin(),
    'basePath' => fc_base_path(),
    'baseUrl' => fc_url(),
    'demoArticleUrl' => fc_demo_article_url(),
    'maxPostsToSearch' =>
        fc_max_posts_to_search(),
    'bluesky' => [
        'handle' =>
            fc_bluesky_handle(),
        'api' =>
            fc_bluesky_api(),
        'pageSize' =>
            (int)$config['bluesky']['page_size']
    ]
];

echo
    'window.FederatedCommentsConfig = Object.freeze(' .
    json_encode(
        $public,
        JSON_UNESCAPED_SLASHES |
        JSON_UNESCAPED_UNICODE
    ) .
    ');';