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:
|
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:
|
||||||
|
|
|
@ -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]
|
||||||
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
@ -12,19 +12,19 @@ RUN_MODE = prod
|
||||||
; ;
|
; ;
|
||||||
; ; More information about CORS can be found here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#The_HTTP_response_headers
|
; ; More information about CORS can be found here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#The_HTTP_response_headers
|
||||||
; ; enable cors headers (disabled by default)
|
; ; enable cors headers (disabled by default)
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
; ;
|
; ;
|
||||||
; ; scheme of allowed requests
|
; ; scheme of allowed requests
|
||||||
; SCHEME = http
|
; SCHEME = http
|
||||||
; ;
|
; ;
|
||||||
; ; list of requesting domains that are allowed
|
; ; list of requesting domains that are allowed
|
||||||
ALLOW_DOMAIN = *
|
ALLOW_DOMAIN = *
|
||||||
; ;
|
; ;
|
||||||
; ; allow subdomains of headers listed above to request
|
; ; allow subdomains of headers listed above to request
|
||||||
; ALLOW_SUBDOMAIN = false
|
; ALLOW_SUBDOMAIN = false
|
||||||
; ;
|
; ;
|
||||||
; ; list of methods allowed to request
|
; ; list of methods allowed to request
|
||||||
METHODS = GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS
|
METHODS = GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS
|
||||||
; ;
|
; ;
|
||||||
; ; max time to cache response
|
; ; max time to cache response
|
||||||
; MAX_AGE = 10m
|
; MAX_AGE = 10m
|
||||||
|
@ -33,36 +33,36 @@ METHODS = GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS
|
||||||
ALLOW_CREDENTIALS = true
|
ALLOW_CREDENTIALS = true
|
||||||
; ;
|
; ;
|
||||||
; ; headers to permit
|
; ; headers to permit
|
||||||
HEADERS = Content-Type,User-Agent
|
HEADERS = Content-Type,User-Agent
|
||||||
|
|
||||||
[federation]
|
[federation]
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
DB_TYPE = sqlite3
|
DB_TYPE = sqlite3
|
||||||
HOST = localhost:3306
|
HOST = localhost:3306
|
||||||
NAME = forgejo
|
NAME = forgejo
|
||||||
USER = root
|
USER = root
|
||||||
PASSWD =
|
PASSWD =
|
||||||
SCHEMA =
|
SCHEMA =
|
||||||
SSL_MODE = disable
|
SSL_MODE = disable
|
||||||
CHARSET = utf8
|
CHARSET = utf8
|
||||||
PATH = /data/gitea/gitea.db
|
PATH = /data/gitea/gitea.db
|
||||||
LOG_SQL = false
|
LOG_SQL = false
|
||||||
|
|
||||||
[repository]
|
[repository]
|
||||||
ROOT = /data/git/repositories
|
ROOT = /data/git/repositories
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
SSH_DOMAIN = localhost
|
SSH_DOMAIN = localhost
|
||||||
DOMAIN = localhost
|
DOMAIN = localhost
|
||||||
HTTP_PORT = 3000
|
HTTP_PORT = 3000
|
||||||
ROOT_URL = http://localhost:3000/
|
ROOT_URL = http://localhost:3000/
|
||||||
DISABLE_SSH = false
|
DISABLE_SSH = false
|
||||||
SSH_PORT = 22
|
SSH_PORT = 22
|
||||||
LFS_START_SERVER = true
|
LFS_START_SERVER = true
|
||||||
LFS_JWT_SECRET = J38QUokkI8qtDatFMChy6dDqwGPRtn-I5bn6hs1gpA8
|
LFS_JWT_SECRET = J38QUokkI8qtDatFMChy6dDqwGPRtn-I5bn6hs1gpA8
|
||||||
OFFLINE_MODE = false
|
OFFLINE_MODE = false
|
||||||
|
|
||||||
[lfs]
|
[lfs]
|
||||||
PATH = /data/git/lfs
|
PATH = /data/git/lfs
|
||||||
|
@ -71,16 +71,16 @@ PATH = /data/git/lfs
|
||||||
ENABLED = false
|
ENABLED = false
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
REGISTER_EMAIL_CONFIRM = false
|
REGISTER_EMAIL_CONFIRM = false
|
||||||
ENABLE_NOTIFY_MAIL = false
|
ENABLE_NOTIFY_MAIL = false
|
||||||
DISABLE_REGISTRATION = false
|
DISABLE_REGISTRATION = false
|
||||||
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
|
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
|
||||||
ENABLE_CAPTCHA = false
|
ENABLE_CAPTCHA = false
|
||||||
REQUIRE_SIGNIN_VIEW = false
|
REQUIRE_SIGNIN_VIEW = false
|
||||||
DEFAULT_KEEP_EMAIL_PRIVATE = false
|
DEFAULT_KEEP_EMAIL_PRIVATE = false
|
||||||
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
|
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
|
||||||
DEFAULT_ENABLE_TIMETRACKING = true
|
DEFAULT_ENABLE_TIMETRACKING = true
|
||||||
NO_REPLY_ADDRESS = noreply.localhost
|
NO_REPLY_ADDRESS = noreply.localhost
|
||||||
|
|
||||||
[picture]
|
[picture]
|
||||||
ENABLE_FEDERATED_AVATAR = true
|
ENABLE_FEDERATED_AVATAR = true
|
||||||
|
@ -93,10 +93,10 @@ ENABLE_OPENID_SIGNUP = true
|
||||||
PROVIDER = file
|
PROVIDER = file
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
MODE = console
|
MODE = console
|
||||||
LEVEL = info
|
LEVEL = info
|
||||||
ROOT_PATH = /data/gitea/log
|
ROOT_PATH = /data/gitea/log
|
||||||
ROUTER = console
|
ROUTER = console
|
||||||
|
|
||||||
[repository.pull-request]
|
[repository.pull-request]
|
||||||
DEFAULT_MERGE_STYLE = merge
|
DEFAULT_MERGE_STYLE = merge
|
||||||
|
@ -105,6 +105,9 @@ DEFAULT_MERGE_STYLE = merge
|
||||||
DEFAULT_TRUST_MODEL = committer
|
DEFAULT_TRUST_MODEL = committer
|
||||||
|
|
||||||
[security]
|
[security]
|
||||||
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue