


























共有 2 个文件被更改,包括 10 次插入 和 4 次删除
@ -4,9 +4,9 @@ class Config {
|
||||
public static $base = 'https://webring.example.com/';
|
||||
|
||||
// Extra allowed prefixes for webring links. ($base is always included)
|
||||
public static $allowedLinkDomains = [
|
||||
//'https://xn--sr8hvo.ws/',
|
||||
];
|
||||
public static $allowedLinkDomains = [
|
||||
//'https://xn--sr8hvo.ws/',
|
||||
];
|
||||
|
||||
// User-agent string for requests this client makes
|
||||
public static $useragent = 'IndieWeb Web Ring/2.0';
|
||||
@ -17,6 +17,10 @@ class Config {
|
||||
// Micropub scopes we want
|
||||
public static $scope = 'profile';
|
||||
|
||||
// OAuth Client Metadata
|
||||
public static $client_name = 'An IndieWeb Webring 🕸️💍';
|
||||
public static $logo_uri = 'data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 180 100%22><text y=%22.9em%22 font-size=%2290%22>🕸️💍</text></svg>';
|
||||
|
||||
// Path to database
|
||||
public static $dbPath = __DIR__ . '/../data/db.sqlite3';
|
||||
public static $dbPath = __DIR__ . '/../data/db.sqlite3';
|
||||
}
|
||||
|
||||
@ -9,6 +9,8 @@ $app = new Micropubkit\IndieAuthEngine(dirname(__FILE__).'/../views', [
|
||||
'base' => \Config::$base,
|
||||
'scope' => \Config::$scope,
|
||||
'useragent' => \Config::$useragent,
|
||||
'client_name' => \Config::$client_name,
|
||||
'logo_uri' => \Config::$logo_uri,
|
||||
]);
|
||||
|
||||
// set up db
|
||||
|
||||
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。