Remove signToActivityPubGet option
Makes it so that all requests are signed, equivalent to signToActivityPubGet always being true.
This commit is contained in:
parent
d27ab85e0f
commit
55b2aebec4
|
@ -120,9 +120,6 @@ redis:
|
||||||
# Proxy remote files (default: false)
|
# Proxy remote files (default: false)
|
||||||
#proxyRemoteFiles: true
|
#proxyRemoteFiles: true
|
||||||
|
|
||||||
# Sign to ActivityPub GET request (default: false)
|
|
||||||
#signToActivityPubGet: true
|
|
||||||
|
|
||||||
#allowedPrivateNetworks: [
|
#allowedPrivateNetworks: [
|
||||||
# '127.0.0.1/32'
|
# '127.0.0.1/32'
|
||||||
#]
|
#]
|
||||||
|
|
|
@ -154,9 +154,6 @@ id: "aid"
|
||||||
# Media Proxy
|
# Media Proxy
|
||||||
#mediaProxy: https://example.com/proxy
|
#mediaProxy: https://example.com/proxy
|
||||||
|
|
||||||
# Sign to ActivityPub GET request (default: false)
|
|
||||||
#signToActivityPubGet: true
|
|
||||||
|
|
||||||
#allowedPrivateNetworks: [
|
#allowedPrivateNetworks: [
|
||||||
# '127.0.0.1/32'
|
# '127.0.0.1/32'
|
||||||
#]
|
#]
|
||||||
|
|
|
@ -776,7 +776,7 @@ emailNotConfiguredWarning: "Email address not set."
|
||||||
ratio: "Ratio"
|
ratio: "Ratio"
|
||||||
secureMode: "Secure Mode (Authorized Fetch)"
|
secureMode: "Secure Mode (Authorized Fetch)"
|
||||||
instanceSecurity: "Instance Security"
|
instanceSecurity: "Instance Security"
|
||||||
secureModeInfo: "Requests from other instances must be signed, otherwise notes won't be returned. signToActivityPubGet must be set to true in the other instance's configuration file."
|
secureModeInfo: "Requests from other instances must be signed, otherwise notes won't be returned."
|
||||||
privateMode: "Private Mode"
|
privateMode: "Private Mode"
|
||||||
privateModeInfo: "When enabled, only authorized instances may fetch notes. Hides all notes from public."
|
privateModeInfo: "When enabled, only authorized instances may fetch notes. Hides all notes from public."
|
||||||
allowedInstances: "Allowed Instances"
|
allowedInstances: "Allowed Instances"
|
||||||
|
|
|
@ -778,7 +778,7 @@ emailNotConfiguredWarning: "メールアドレスの設定がされていませ
|
||||||
ratio: "比率"
|
ratio: "比率"
|
||||||
secureMode: "セキュアモード (Authorized Fetch)"
|
secureMode: "セキュアモード (Authorized Fetch)"
|
||||||
instanceSecurity: "インスタンスのセキュリティー"
|
instanceSecurity: "インスタンスのセキュリティー"
|
||||||
secureModeInfo: "他のインスタンスからリクエストするときに、証明を付けなければ返送しません。他のインスタンスの設定ファイルでsignToActivityPubGetはtrueにしてください。"
|
secureModeInfo: "他のインスタンスからリクエストするときに、証明を付けなければ返送しません。"
|
||||||
privateMode: "非公開モード"
|
privateMode: "非公開モード"
|
||||||
privateModeInfo: "有効にして、許可されているインスタンスのみがリクエストできます。すべてのノートが公開に非表示にします。"
|
privateModeInfo: "有効にして、許可されているインスタンスのみがリクエストできます。すべてのノートが公開に非表示にします。"
|
||||||
allowedInstances: "許可されたインスタンス"
|
allowedInstances: "許可されたインスタンス"
|
||||||
|
|
|
@ -63,8 +63,6 @@ export type Source = {
|
||||||
|
|
||||||
mediaProxy?: string;
|
mediaProxy?: string;
|
||||||
proxyRemoteFiles?: boolean;
|
proxyRemoteFiles?: boolean;
|
||||||
|
|
||||||
signToActivityPubGet?: boolean;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -76,7 +76,7 @@ export default class Resolver {
|
||||||
throw new Error('Instance is not allowed');
|
throw new Error('Instance is not allowed');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.signToActivityPubGet && !this.user) {
|
if (!this.user) {
|
||||||
this.user = await getInstanceActor();
|
this.user = await getInstanceActor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue