From dab174662778f68694c02a4c8311b66f2f2a6135 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Sat, 11 Apr 2020 23:16:00 +0200 Subject: [PATCH 1/4] Update README.md, add any information about LFS settings --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 36b8c5a..66e7023 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,19 @@ Host domain.tld Architecture: this package is compatible with amd64, i386 and arm. The package will try to detect it with the command uname -m and fail if it can't detect the architecture. If that happens please open an issue describing your hardware and the result of the command `uname -m`. +### LFS setup +To use a repository with an `LFS` setup, you need to activate-it on `/opt/gitea/custom/conf/app.ini` +```bash +[server] +LFS_START_SERVER = true +LFS_HTTP_AUTH_EXPIRY = 20m +``` +By default Nginx is setup with a max value to updload files at 200 Mo. It's possible to change this value on `/etc/nginx/conf.d/my.domain.tld.d/gitea.conf`. +```bash +client_max_body_size 200M; +``` +Don't forget to restart Gitea `sudo systemctl restart gitea.service`. + ### Git command access with HTTPS If you want to use the git command (like `git clone`, `git pull`, `git push`), you need to set this app as **public**. From 514932430f00adb0a1efbe08721e5550666991f0 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Mon, 13 Apr 2020 19:00:35 +0200 Subject: [PATCH 2/4] Update markdown and add a small information about the update application --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 66e7023..493810d 100644 --- a/README.md +++ b/README.md @@ -73,17 +73,19 @@ Architecture: this package is compatible with amd64, i386 and arm. The package w ### LFS setup To use a repository with an `LFS` setup, you need to activate-it on `/opt/gitea/custom/conf/app.ini` -```bash +```ini [server] LFS_START_SERVER = true LFS_HTTP_AUTH_EXPIRY = 20m ``` By default Nginx is setup with a max value to updload files at 200 Mo. It's possible to change this value on `/etc/nginx/conf.d/my.domain.tld.d/gitea.conf`. -```bash +```ini client_max_body_size 200M; ``` Don't forget to restart Gitea `sudo systemctl restart gitea.service`. +> This settings are restore to default when Gitea is update. Don't forget to restore your setup after all updates. + ### Git command access with HTTPS If you want to use the git command (like `git clone`, `git pull`, `git push`), you need to set this app as **public**. From 19a2834f227a786c0ecec9a1ef58b180a8539167 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Mon, 13 Apr 2020 22:16:16 +0200 Subject: [PATCH 3/4] Fix wrong Markdown --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 493810d..c95aba0 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ LFS_START_SERVER = true LFS_HTTP_AUTH_EXPIRY = 20m ``` By default Nginx is setup with a max value to updload files at 200 Mo. It's possible to change this value on `/etc/nginx/conf.d/my.domain.tld.d/gitea.conf`. -```ini +``` client_max_body_size 200M; ``` Don't forget to restart Gitea `sudo systemctl restart gitea.service`. From bfc7dd4ceaad0ecbb601cfd231e51402707fb2ce Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Mon, 13 Apr 2020 22:17:01 +0200 Subject: [PATCH 4/4] Apply suggestion to README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c95aba0..187564c 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ client_max_body_size 200M; ``` Don't forget to restart Gitea `sudo systemctl restart gitea.service`. -> This settings are restore to default when Gitea is update. Don't forget to restore your setup after all updates. +> This settings are restored to the default config when Gitea is updated. Don't forget to restore your setup after all updates. ### Git command access with HTTPS