Skip to content

Commit 28bee28

Browse files
joubertredratandreynering
authored andcommitted
Replace Gogs to Gitea in installation options
1 parent f430d26 commit 28bee28

File tree

5 files changed

+415
-415
lines changed

5 files changed

+415
-415
lines changed

conf/app.ini

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE
33

44
; App name that shows on every page title
5-
APP_NAME = Gogs: Go Git Service
5+
APP_NAME = Gitea: Git with a cup of tea
66
; Change it if you run locally
77
RUN_USER = git
88
; Either "dev", "prod" or "test", default is "dev"
@@ -38,7 +38,7 @@ PREVIEWABLE_FILE_MODES = markdown
3838
[repository.upload]
3939
; Whether repository file uploads are enabled. Defaults to `true`
4040
ENABLED = true
41-
; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gogs restart)
41+
; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gitea restart)
4242
TEMP_PATH = data/tmp/uploads
4343
; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
4444
ALLOWED_TYPES =
@@ -93,7 +93,7 @@ HTTP_ADDR = 0.0.0.0
9393
HTTP_PORT = 3000
9494
; Permission for unix socket
9595
UNIX_SOCKET_PERMISSION = 666
96-
; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service.
96+
; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service.
9797
; In most cases you do not need to change the default value.
9898
; Alter it only if your SSH server node is not the same as HTTP node.
9999
LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
@@ -120,7 +120,7 @@ MINIMUM_KEY_SIZE_CHECK = false
120120
OFFLINE_MODE = false
121121
DISABLE_ROUTER_LOG = false
122122
; Generate steps:
123-
; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com
123+
; $ ./main cert -ca=true -duration=8760h0m0s -host=myhost.example.com
124124
;
125125
; Or from a .pfx file exported from the Windows certificate store (do
126126
; not forget to export the private key):
@@ -129,7 +129,7 @@ DISABLE_ROUTER_LOG = false
129129
CERT_FILE = custom/https/cert.pem
130130
KEY_FILE = custom/https/key.pem
131131
; Upper level of template and static file path
132-
; default is the path where Gogs is executed
132+
; default is the path where Gitea is executed
133133
STATIC_ROOT_PATH =
134134
; Default path for App data
135135
APP_DATA_PATH = data
@@ -149,13 +149,13 @@ DSA = 1024
149149
; Either "mysql", "postgres" or "sqlite3", it's your choice
150150
DB_TYPE = mysql
151151
HOST = 127.0.0.1:3306
152-
NAME = gogs
152+
NAME = gitea
153153
USER = root
154154
PASSWD =
155155
; For "postgres" only, either "disable", "require" or "verify-full"
156156
SSL_MODE = disable
157157
; For "sqlite3" and "tidb", use absolute path when you start as service
158-
PATH = data/gogs.db
158+
PATH = data/gitea.db
159159

160160
[admin]
161161

@@ -165,8 +165,8 @@ INSTALL_LOCK = false
165165
SECRET_KEY = !#@FDEWREWR&*(
166166
; Auto-login remember days
167167
LOGIN_REMEMBER_DAYS = 7
168-
COOKIE_USERNAME = gogs_awesome
169-
COOKIE_REMEMBER_NAME = gogs_incredible
168+
COOKIE_USERNAME = gitea_awesome
169+
COOKIE_REMEMBER_NAME = gitea_incredible
170170
; Reverse proxy authentication header name of user name
171171
REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
172172

@@ -344,13 +344,13 @@ RECEIVERS =
344344
LEVEL =
345345
; Either "mysql" or "postgres"
346346
DRIVER =
347-
; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8
347+
; Based on xorm, e.g.: root:root@localhost/gitea?charset=utf8
348348
CONN =
349349

350350
[cron]
351351
; Enable running cron tasks periodically.
352352
ENABLED = true
353-
; Run cron tasks when Gogs starts.
353+
; Run cron tasks when Gitea starts.
354354
RUN_AT_START = false
355355

356356
; Update mirrors
@@ -430,7 +430,7 @@ cs-CZ = cs-CZ
430430

431431
[other]
432432
SHOW_FOOTER_BRANDING = false
433-
; Show version information about Gogs and Go in the footer
433+
; Show version information about Gitea and Go in the footer
434434
SHOW_FOOTER_VERSION = true
435435
; Show time of template execution in the footer
436436
SHOW_FOOTER_TEMPLATE_LOAD_TIME = true

models/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func LoadConfigs() {
9595
DbCfg.Passwd = sec.Key("PASSWD").String()
9696
}
9797
DbCfg.SSLMode = sec.Key("SSL_MODE").String()
98-
DbCfg.Path = sec.Key("PATH").MustString("data/gogs.db")
98+
DbCfg.Path = sec.Key("PATH").MustString("data/gitea.db")
9999
}
100100

101101
// parsePostgreSQLHostPort parses given input in various forms defined in

modules/bindata/bindata.go

Lines changed: 399 additions & 399 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/setting/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ func NewContext() {
493493
// Determine and create root git repository path.
494494
sec = Cfg.Section("repository")
495495
Repository.DisableHTTPGit = sec.Key("DISABLE_HTTP_GIT").MustBool()
496-
RepoRootPath = sec.Key("ROOT").MustString(path.Join(homeDir, "gogs-repositories"))
496+
RepoRootPath = sec.Key("ROOT").MustString(path.Join(homeDir, "gitea-repositories"))
497497
forcePathSeparator(RepoRootPath)
498498
if !filepath.IsAbs(RepoRootPath) {
499499
RepoRootPath = path.Join(workDir, RepoRootPath)

public/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ function initInstall() {
211211

212212
// Database type change detection.
213213
$("#db_type").change(function () {
214-
var sqliteDefault = 'data/gogs.db';
215-
var tidbDefault = 'data/gogs_tidb';
214+
var sqliteDefault = 'data/gitea.db';
215+
var tidbDefault = 'data/gitea_tidb';
216216

217217
var dbType = $(this).val();
218218
if (dbType === "SQLite3" || dbType === "TiDB") {

0 commit comments

Comments
 (0)