forked from grumpydevelop/federator
small bug fixes
This commit is contained in:
parent
da18d37a79
commit
49a4bee76a
7 changed files with 10 additions and 10 deletions
|
@ -35,7 +35,7 @@ If the include redis cache is enabled,
|
||||||
- install redis
|
- install redis
|
||||||
- create a users.acl for redis with the content:
|
- create a users.acl for redis with the content:
|
||||||
|
|
||||||
user federator on ~u_* +get +set ~s_* +get +setex ~m_* +get +setex >redis*change*password
|
user federator on ~u_* +get +set ~s_* +get +setex ~m_* +get +setex ~publickey_* +get +setex >redis*change*password
|
||||||
|
|
||||||
- change password in the rediscache.ini to match your given password.
|
- change password in the rediscache.ini to match your given password.
|
||||||
- install the redis plugin from pecl if not provided via your distro
|
- install the redis plugin from pecl if not provided via your distro
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[generic]
|
[generic]
|
||||||
externaldomain = 'your.fqdn'
|
externaldomain = 'contentnation.net'
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
host = '127.0.0.1'
|
host = '127.0.0.1'
|
||||||
|
|
|
@ -43,7 +43,6 @@ class Outbox implements \Federator\Api\FedUsers\FedUsersInterface
|
||||||
$dbh = $this->main->getDatabase();
|
$dbh = $this->main->getDatabase();
|
||||||
$cache = $this->main->getCache();
|
$cache = $this->main->getCache();
|
||||||
$connector = $this->main->getConnector();
|
$connector = $this->main->getConnector();
|
||||||
|
|
||||||
// get user
|
// get user
|
||||||
$user = \Federator\DIO\User::getUserByName(
|
$user = \Federator\DIO\User::getUserByName(
|
||||||
$dbh,
|
$dbh,
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
host = localhost
|
host = localhost
|
||||||
port = 6379
|
port = 6379
|
||||||
username = federator
|
username = federator
|
||||||
|
password = redis*change*password
|
||||||
userttl = 10
|
userttl = 10
|
||||||
publickeypemttl = 3600
|
publickeypemttl = 3600
|
||||||
statsttl = 60
|
statsttl = 60
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
|
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
|
||||||
<Link rel="lrdd" template="https://{$fqdn}/.well-known/webfinger?resource={ldelim}uri{rdelim}"/>
|
<Link rel="lrdd" template="https://{$fqdn}/.well-known/webfinger?resource={ldelim}uri{rdelim}"/>
|
||||||
</XRD>
|
</XRD>
|
||||||
|
|
|
@ -60,12 +60,12 @@
|
||||||
],
|
],
|
||||||
"id":"https://{$fqdn}/{$username}",
|
"id":"https://{$fqdn}/{$username}",
|
||||||
"type":"{$type}",
|
"type":"{$type}",
|
||||||
"following":"https://{$fqdn}/users/{$username}/following",
|
"following":"https://{$fqdn}/{$username}/following",
|
||||||
"followers":"https://{$fqdn}/users/{$username}/followers",
|
"followers":"https://{$fqdn}/{$username}/followers",
|
||||||
"inbox":"https://{$fqdn}/users/{$username}/inbox",
|
"inbox":"https://{$fqdn}/{$username}/inbox",
|
||||||
"outbox":"https://{$fqdn}/users/{$username}/outbox",
|
"outbox":"https://{$fqdn}/{$username}/outbox",
|
||||||
"featured":"https://{$fqdn}/users/{$username}/collections/featured",
|
"featured":"https://{$fqdn}/{$username}/collections/featured",
|
||||||
"featuredTags":"https://{$fqdn}/users/{$username}/collections/tags",
|
"featuredTags":"https://{$fqdn}/{$username}/collections/tags",
|
||||||
"preferredUsername":"{$username}",
|
"preferredUsername":"{$username}",
|
||||||
"name":"{$name}",
|
"name":"{$name}",
|
||||||
"summary":"{$summary}",
|
"summary":"{$summary}",
|
||||||
|
|
Loading…
Add table
Reference in a new issue