Make what needs to be edited more obvious
rodzic
206c46514a
commit
f2c6a4afa0
15
index.php
15
index.php
|
@ -21,10 +21,10 @@
|
||||||
// This is where you set up your account's name and bio. You also need to provide a public/private keypair. The posting page is protected with a password that also needs to be set here.
|
// This is where you set up your account's name and bio. You also need to provide a public/private keypair. The posting page is protected with a password that also needs to be set here.
|
||||||
|
|
||||||
// Set up the Actor's information
|
// Set up the Actor's information
|
||||||
$username = rawurlencode("example"); // Encoded as it is often used as part of a URl
|
// Edit these:
|
||||||
$realName = "E. Xample. Jr.";
|
$username = rawurlencode("example"); // Type the @ username that you want. Do not include an "@".
|
||||||
$summary = "Some text about the user.";
|
$realName = "E. Xample. Jr."; // This is the user's "real" name.
|
||||||
$server = $_SERVER["SERVER_NAME"]; // Domain name this is hosted on
|
$summary = "Some text about the user."; // This is the bio of your user.
|
||||||
|
|
||||||
// Generate locally or from https://cryptotools.net/rsagen
|
// Generate locally or from https://cryptotools.net/rsagen
|
||||||
// Newlines must be replaced with "\n"
|
// Newlines must be replaced with "\n"
|
||||||
|
@ -34,6 +34,11 @@
|
||||||
// Password for sending messages
|
// Password for sending messages
|
||||||
$password = "P4ssW0rd";
|
$password = "P4ssW0rd";
|
||||||
|
|
||||||
|
/** No need to edit anything below here. **/
|
||||||
|
|
||||||
|
// Internal data
|
||||||
|
$server = $_SERVER["SERVER_NAME"]; // Do not change this!
|
||||||
|
|
||||||
// Logging:
|
// Logging:
|
||||||
// ActivityPub is a "chatty" protocol. This takes all the requests your server receives and saves them in `/logs/` as a datestamped text file.
|
// ActivityPub is a "chatty" protocol. This takes all the requests your server receives and saves them in `/logs/` as a datestamped text file.
|
||||||
|
|
||||||
|
@ -138,7 +143,7 @@
|
||||||
"preferredUsername" => rawurldecode($username),
|
"preferredUsername" => rawurldecode($username),
|
||||||
"name" => "{$realName}",
|
"name" => "{$realName}",
|
||||||
"summary" => "{$summary}",
|
"summary" => "{$summary}",
|
||||||
"url" => "https://{$server}",
|
"url" => "https://{$server}/{$username}",
|
||||||
"manuallyApprovesFollowers" => true,
|
"manuallyApprovesFollowers" => true,
|
||||||
"discoverable" => true,
|
"discoverable" => true,
|
||||||
"published" => "2024-02-12T11:51:00Z",
|
"published" => "2024-02-12T11:51:00Z",
|
||||||
|
|
Ładowanie…
Reference in New Issue