gitea

- Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.acid.vegas/-c.git
Log | Files | Refs | Archive

commit d2cbd43dffc02080f7fda4faa9c40c9670bd92c2
parent 751b579605b6609d5ad250474e1f2525b4cc8b5b
Author: acidvegas <acid.vegas@acid.vegas>
Date: Wed, 14 Feb 2024 14:11:07 -0500

Disabled repo archive (.zip) downloads (Issue with Giteas /var folder bloating), max file size upped to 4gb

Diffstat:
Mapp.ini | 13+++----------
Mnginx.conf | 2+-

2 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/app.ini b/app.ini
@@ -19,6 +19,7 @@ MAX_CREATION_LIMIT = 100
 DISABLE_STARS = true
 ENABLE_PUSH_CREATE_USER = true
 ENABLE_PUSH_CREATE_ORG = true
+DISABLE_DOWNLOAD_SOURCE_ARCHIVES = true
 
 [repository.signing]
 DEFAULT_TRUST_MODEL = committer
@@ -86,13 +87,5 @@ SHOW_USER_EMAIL = false
 DEFAULT_THEME = github
 THEMES = github
 
-[cron]
-ENABLED = true
-RUN_AT_START = true
-
-[cron.archive_cleanup]
-ENABLED = true
-RUN_AT_START = true
-NOTICE_ON_SUCCESS = false
-SCHEDULE = @midnight
-OLDER_THAN = 24h
+[attachment]
+MAX_SIZE = 4096
diff --git a/nginx.conf b/nginx.conf
@@ -2,7 +2,7 @@ server {
     server_name git.supernets.org;
 
     location / {
-        client_max_body_size 512M;
+        client_max_body_size 4096M;
         proxy_pass http://localhost:3000;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;