Skip to content

Commit 00db6ff

Browse files
committed
update docs
1 parent 82d2925 commit 00db6ff

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

custom/conf/app.example.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ PATH =
19421942
;[mirror]
19431943
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
19441944
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1945-
;; Whether gitea's mirror function can be used or not.
1945+
;; Enables the mirror functionality. Set to **false** to disable all mirrors.
19461946
;ENABLED = true
19471947
;; Disable the creation of **new** mirrors. Pre-existing mirrors remain valid.
19481948
;DISABLE_NEW_PULL = false

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

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

955955
## Mirror (`mirror`)
956956

957-
- `ENABLED`: **true**: Whether gitea's mirror function can be used or not.
957+
- `ENABLED`: **true**: Enables the mirror functionality. Set to **false** to disable all mirrors.
958958
- `DISABLE_NEW_PULL`: **false**: Disable the creation of **new** mirrors. Pre-existing mirrors remain valid.
959959
- `DISABLE_NEW_PUSH`: **false**: Disable the creation of **new** push mirrors. Pre-existing mirrors remain valid.
960960
- `DEFAULT_INTERVAL`: **8h**: Default interval between each check

modules/setting/mirror.go

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func newMirror() {
3535
// fallback to old config repository.DISABLE_MIRRORS
3636
if Cfg.Section("repository").Key("DISABLE_MIRRORS").MustBool(false) {
3737
log.Warn("Deprecated DISABLE_MIRRORS config is used, please change your config and use the optins within [mirror] section")
38+
// TODO: enable on v1.17.0: log.Error("Deprecated fallback used, will be removed in v1.18.0")
3839
Mirror.DisableNewPull = true
3940
}
4041

0 commit comments

Comments
 (0)