feat: update forgejo version to 1.20

This commit is contained in:
Aravinth Manivannan 2023-09-18 20:59:40 +05:30
parent f380f2ef01
commit d7e319db43
Signed by: realaravinth
GPG key ID: F8F50389936984FF
3 changed files with 47 additions and 38 deletions

View file

@ -2,7 +2,7 @@ version: "3"
services: services:
forgejo: forgejo:
image: codeberg.org/forgejo/forgejo:1.18.0-1 image: codeberg.org/forgejo/forgejo:1.20.1-0
container_name: hostea-dash-forgejo container_name: hostea-dash-forgejo
network_mode: host network_mode: host
environment: environment:

View file

@ -1,10 +1,10 @@
; SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net> ; SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
; ;
; SPDX-License-Identifier: AGPL-3.0-or-later ; SPDX-License-Identifier: AGPL-3.0-or-later
APP_NAME = Forgejo:+Beyond+Coding+We+Forge APP_NAME = Forgejo:+Beyond+Coding+We+Forge
RUN_USER = git RUN_USER = git
RUN_MODE = prod RUN_MODE = prod
WORK_PATH = /data/gitea
[cors] [cors]
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -108,3 +108,6 @@ DEFAULT_TRUST_MODEL = committer
INSTALL_LOCK = true INSTALL_LOCK = true
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2OTUwNDM4MzR9.OXP0MrWVJQb-3RFPcVPK7eDSPbMzc-lTjLkWjzZVouM INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2OTUwNDM4MzR9.OXP0MrWVJQb-3RFPcVPK7eDSPbMzc-lTjLkWjzZVouM
PASSWORD_HASH_ALGO = pbkdf2 PASSWORD_HASH_ALGO = pbkdf2
[oauth2]
JWT_SECRET = Cx6QQekcNbTO5viT791CMafI_GvsiQtvLZWYaSUR-Fs

View file

@ -281,6 +281,12 @@ class Forgejo:
def create_access_token_payload(name: str): def create_access_token_payload(name: str):
data = { data = {
"name": name, "name": name,
"scopes": [
"read:issue",
"write:notification",
"read:repository",
"read:user",
],
} }
return data return data