Browse Source

Set default protocol and disable http git

Piotr Orzechowski 1 year ago
parent
commit
67fd4cee8a
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      files/etc/gitea/default.ini

+ 3
- 1
files/etc/gitea/default.ini View File

@@ -4,6 +4,7 @@ RUN_USER = git
4 4
 [repository]
5 5
 ROOT               = /data/git/repositories
6 6
 PREFERRED_LICENSES = GPL-3.0,AGPL-3.0,LGPL-3.0
7
+DISABLE_HTTP_GIT   = true
7 8
 
8 9
 [repository.upload]
9 10
 TEMP_PATH = /data/gitea/uploads
@@ -15,9 +16,10 @@ SHOW_USER_EMAIL = false
15 16
 APP_DATA_PATH    = /data/gitea
16 17
 LANDING_PAGE     = explore
17 18
 SSH_DOMAIN       = localhost
19
+PROTOCOL         = http
18 20
 DOMAIN           = localhost
19 21
 HTTP_PORT        = 3000
20
-ROOT_URL         = http://localhost:3000/
22
+ROOT_URL         = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
21 23
 DISABLE_SSH      = false
22 24
 SSH_PORT         = 22
23 25
 LFS_START_SERVER = false

Loading…
Cancel
Save