Skip to content

Commit 641f796

Browse files
author
Gusted
committed
Disable federation by default (go-gitea#20045)
- Backport go-gitea#20045 - A Gitea instance should choose whetever they want to federate(as once it has more features also brings extra costs/moderation/unexpected behavior) with other AP/ForgeFed software.
1 parent 1823bfd commit 641f796

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

custom/conf/app.example.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -2247,10 +2247,10 @@ PATH =
22472247
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
22482248
;;
22492249
;; Enable/Disable federation capabilities
2250-
; ENABLED = true
2250+
;ENABLED = false
22512251
;;
22522252
;; Enable/Disable user statistics for nodeinfo if federation is enabled
2253-
; SHARE_USER_STATISTICS = true
2253+
;SHARE_USER_STATISTICS = true
22542254

22552255
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
22562256
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

docs/content/doc/advanced/config-cheat-sheet.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ Task queue configuration has been moved to `queue.task`. However, the below conf
10881088

10891089
## Federation (`federation`)
10901090

1091-
- `ENABLED`: **true**: Enable/Disable federation capabilities
1091+
- `ENABLED`: **false**: Enable/Disable federation capabilities
10921092
- `SHARE_USER_STATISTICS`: **true**: Enable/Disable user statistics for nodeinfo if federation is enabled
10931093

10941094
## Packages (`packages`)

modules/setting/federation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var (
1212
Enabled bool
1313
ShareUserStatistics bool
1414
}{
15-
Enabled: true,
15+
Enabled: false,
1616
ShareUserStatistics: true,
1717
}
1818
)

0 commit comments

Comments
 (0)