Make what needs to be edited more obvious

merge-requests/5/head
Terence Eden 2024-02-18 20:58:11 +00:00
rodzic 206c46514a
commit f2c6a4afa0
1 zmienionych plików z 10 dodań i 5 usunięć

Wyświetl plik

@ -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.
// Set up the Actor's information
$username = rawurlencode("example"); // Encoded as it is often used as part of a URl
$realName = "E. Xample. Jr.";
$summary = "Some text about the user.";
$server = $_SERVER["SERVER_NAME"]; // Domain name this is hosted on
// Edit these:
$username = rawurlencode("example"); // Type the @ username that you want. Do not include an "@".
$realName = "E. Xample. Jr."; // This is the user's "real" name.
$summary = "Some text about the user."; // This is the bio of your user.
// Generate locally or from https://cryptotools.net/rsagen
// Newlines must be replaced with "\n"
@ -34,6 +34,11 @@
// Password for sending messages
$password = "P4ssW0rd";
/** No need to edit anything below here. **/
// Internal data
$server = $_SERVER["SERVER_NAME"]; // Do not change this!
// Logging:
// 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),
"name" => "{$realName}",
"summary" => "{$summary}",
"url" => "https://{$server}",
"url" => "https://{$server}/{$username}",
"manuallyApprovesFollowers" => true,
"discoverable" => true,
"published" => "2024-02-12T11:51:00Z",