forked from kevadesu/forgejo
activitypub: signing http client
Signed-off-by: Loïc Dachary <loic@dachary.org>
This commit is contained in:
parent
e8907c3c9e
commit
15c1f6218c
4 changed files with 192 additions and 2 deletions
|
@ -9,9 +9,17 @@ import "code.gitea.io/gitea/modules/log"
|
|||
// Federation settings
|
||||
var (
|
||||
Federation = struct {
|
||||
Enabled bool
|
||||
Enabled bool
|
||||
Algorithms []string
|
||||
DigestAlgorithm string
|
||||
GetHeaders []string
|
||||
PostHeaders []string
|
||||
}{
|
||||
Enabled: true,
|
||||
Enabled: true,
|
||||
Algorithms: []string{"rsa-sha256", "rsa-sha512"},
|
||||
DigestAlgorithm: "SHA-256",
|
||||
GetHeaders: []string{"(request-target)", "Date"},
|
||||
PostHeaders: []string{"(request-target)", "Date", "Digest"},
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue