Browse Source

更新 'app.ini'

fatwolf 2 years ago
parent
commit
ff8dae03e2
1 changed files with 15 additions and 3 deletions
  1. 15 3
      app.ini

+ 15 - 3
app.ini

@@ -9,10 +9,10 @@ NAME     = git
 USER     = root
 PASSWORD = Gold@53743001
 SSL_MODE = disable
-PATH     = /home/gs1802/gogs/data/gogs.db
+PATH     = /home/使用者/gogs/data/gogs.db
 
 [repository]
-ROOT = /home/gs1802/gogs-repositories
+ROOT = /home/使用者/gogs-repositories
 
 [server]
 DOMAIN           = localhost
@@ -43,9 +43,21 @@ PROVIDER = file
 [log]
 MODE      = file
 LEVEL     = Info
-ROOT_PATH = /home/gs1802/gogs/log
+ROOT_PATH = /home/使用者/gogs/log
 
 [security]
 INSTALL_LOCK = true
 SECRET_KEY   = i1HcejkdIJ3v2TQ
 
+[repository.upload]
+; Whether to enable repository file uploads.
+ENABLED = true
+; The path to temporarily store uploads (content under this path gets wiped out on every start).
+TEMP_PATH = data/tmp/uploads
+; File types that are allowed to be uploaded, e.g. "image/jpeg|image/png". Leave empty to allow any file type.
+ALLOWED_TYPES =
+; The maximum size of each file in MB.
+FILE_MAX_SIZE = 200
+; The maximum number of files per upload.
+MAX_FILES = 10000
+