feat: update forgejo version to 1.20
This commit is contained in:
parent
f380f2ef01
commit
d7e319db43
3 changed files with 47 additions and 38 deletions
|
@ -2,7 +2,7 @@ version: "3"
|
|||
|
||||
services:
|
||||
forgejo:
|
||||
image: codeberg.org/forgejo/forgejo:1.18.0-1
|
||||
image: codeberg.org/forgejo/forgejo:1.20.1-0
|
||||
container_name: hostea-dash-forgejo
|
||||
network_mode: host
|
||||
environment:
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
; SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
;
|
||||
; SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
APP_NAME = Forgejo:+Beyond+Coding+We+Forge
|
||||
RUN_USER = git
|
||||
RUN_MODE = prod
|
||||
WORK_PATH = /data/gitea
|
||||
|
||||
[cors]
|
||||
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
@ -108,3 +108,6 @@ DEFAULT_TRUST_MODEL = committer
|
|||
INSTALL_LOCK = true
|
||||
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2OTUwNDM4MzR9.OXP0MrWVJQb-3RFPcVPK7eDSPbMzc-lTjLkWjzZVouM
|
||||
PASSWORD_HASH_ALGO = pbkdf2
|
||||
|
||||
[oauth2]
|
||||
JWT_SECRET = Cx6QQekcNbTO5viT791CMafI_GvsiQtvLZWYaSUR-Fs
|
||||
|
|
|
@ -281,6 +281,12 @@ class Forgejo:
|
|||
def create_access_token_payload(name: str):
|
||||
data = {
|
||||
"name": name,
|
||||
"scopes": [
|
||||
"read:issue",
|
||||
"write:notification",
|
||||
"read:repository",
|
||||
"read:user",
|
||||
],
|
||||
}
|
||||
|
||||
return data
|
||||
|
|
Loading…
Reference in a new issue