From faf2855244ea267d1526d3f12f08370fe4a2e983 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 14 Jun 2022 12:23:20 -0500 Subject: [PATCH] Add new federation settings to app.example.ini and config-cheat-sheet --- custom/conf/app.example.ini | 12 ++++++++++++ .../content/doc/advanced/config-cheat-sheet.en-us.md | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 5814c0d69d..07c1f92273 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -2248,6 +2248,18 @@ PATH = ;; ;; Enable/Disable user statistics for nodeinfo if federation is enabled ; SHARE_USER_STATISTICS = true +;; +;; HTTP signature algorithms +; ALGORITHMS = rsa-sha256, rsa-sha512 +;; +;; HTTP signature digest algorithm +; DIGEST_ALGORITHM = SHA-256 +;; +;; GET headers for federation requests +; GET_HEADERS = (request-target), Date +;; +;; POST headers for federation requests +; POST_HEADERS = (request-target), Date, Digest ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/docs/content/doc/advanced/config-cheat-sheet.en-us.md b/docs/content/doc/advanced/config-cheat-sheet.en-us.md index 3981dc5fab..5a5cad3a46 100644 --- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md +++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md @@ -1087,6 +1087,10 @@ Task queue configuration has been moved to `queue.task`. However, the below conf - `ENABLED`: **true**: Enable/Disable federation capabilities - `SHARE_USER_STATISTICS`: **true**: Enable/Disable user statistics for nodeinfo if federation is enabled +- `ALGORITHMS`: **rsa-sha256, rsa-sha512**: HTTP signature algorithms +- `DIGEST_ALGORITHM`: **SHA-256**: HTTP signature digest algorithm +- `GET_HEADERS`: **(request-target), Date**: GET headers for federation requests +- `POST_HEADERS`: **(request-target), Date, Digest**: POST headers for federation requests ## Packages (`packages`)