From a28d9b6c7ed281a238e3aea08843a043823efd1e Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Fri, 31 May 2024 18:46:17 +0200 Subject: [PATCH] Rework gitignore, git keep and commit default giteea config Signed-off-by: Benoit Donneaux --- .gitignore | 1 + gitea/.gitignore | 4 ++ gitea/conf/app.ini | 98 +++++++++++++++++++++++++++++++++++++ trac/.gitignore | 7 +++ trac/backup/.gitkeep | 2 + trac/project/.gitignore | 2 - trac/public_html/.gitignore | 1 - trac/repos/.gitignore | 1 - 8 files changed, 112 insertions(+), 4 deletions(-) create mode 100644 .gitignore create mode 100644 gitea/.gitignore create mode 100644 gitea/conf/app.ini create mode 100644 trac/.gitignore create mode 100644 trac/backup/.gitkeep delete mode 100644 trac/project/.gitignore delete mode 100644 trac/public_html/.gitignore delete mode 100644 trac/repos/.gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25f489f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.gocache/ diff --git a/gitea/.gitignore b/gitea/.gitignore new file mode 100644 index 0000000..bce38e2 --- /dev/null +++ b/gitea/.gitignore @@ -0,0 +1,4 @@ +/backup/* +/data/* +!.gitkeep +!.gitignore \ No newline at end of file diff --git a/gitea/conf/app.ini b/gitea/conf/app.ini new file mode 100644 index 0000000..bdc0ecd --- /dev/null +++ b/gitea/conf/app.ini @@ -0,0 +1,98 @@ +APP_NAME = Gitea: Git with a cup of tea +RUN_USER = git +RUN_MODE = prod +WORK_PATH = /var/lib/gitea + +[repository] +ROOT = /var/lib/gitea/git/repositories + +[repository.local] +LOCAL_COPY_PATH = /tmp/gitea/local-repo + +[repository.upload] +TEMP_PATH = /tmp/gitea/uploads + +[server] +APP_DATA_PATH = /var/lib/gitea +SSH_DOMAIN = localhost +HTTP_PORT = 3000 +ROOT_URL = http://localhost:3000/ +DISABLE_SSH = false +; In rootless gitea container only internal ssh server is supported +START_SSH_SERVER = true +SSH_PORT = 2222 +SSH_LISTEN_PORT = 2222 +BUILTIN_SSH_SERVER_USER = git +LFS_START_SERVER = true +DOMAIN = localhost +LFS_JWT_SECRET = K4e1YXbl1im3l7KMrllZgvp34VbVWsDKBiam3Tqe9e0 +OFFLINE_MODE = false + +[database] +PATH = /var/lib/gitea/data/gitea.db +DB_TYPE = sqlite3 +HOST = localhost:3306 +NAME = gitea +USER = root +PASSWD = +SCHEMA = +SSL_MODE = disable +LOG_SQL = false + +[session] +PROVIDER_CONFIG = /var/lib/gitea/data/sessions +PROVIDER = file + +[picture] +AVATAR_UPLOAD_PATH = /var/lib/gitea/data/avatars +REPOSITORY_AVATAR_UPLOAD_PATH = /var/lib/gitea/data/repo-avatars + +[attachment] +PATH = /var/lib/gitea/data/attachments + +[log] +ROOT_PATH = /var/lib/gitea/data/log +MODE = console +LEVEL = info + +[security] +INSTALL_LOCK = true +SECRET_KEY = +REVERSE_PROXY_LIMIT = 1 +REVERSE_PROXY_TRUSTED_PROXIES = * +INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3MDk3OTk5Nzl9.Uki3mT8hmXJ-JvhVEdk2p6J3Mmp4Olt50RzRGk6YFic +PASSWORD_HASH_ALGO = pbkdf2 + +[service] +DISABLE_REGISTRATION = false +REQUIRE_SIGNIN_VIEW = false +REGISTER_EMAIL_CONFIRM = false +ENABLE_NOTIFY_MAIL = false +ALLOW_ONLY_EXTERNAL_REGISTRATION = false +ENABLE_CAPTCHA = false +DEFAULT_KEEP_EMAIL_PRIVATE = false +DEFAULT_ALLOW_CREATE_ORGANIZATION = true +DEFAULT_ENABLE_TIMETRACKING = true +NO_REPLY_ADDRESS = noreply.localhost + +[lfs] +PATH = /var/lib/gitea/git/lfs + +[mailer] +ENABLED = false + +[openid] +ENABLE_OPENID_SIGNIN = true +ENABLE_OPENID_SIGNUP = true + +[cron.update_checker] +ENABLED = false + +[repository.pull-request] +DEFAULT_MERGE_STYLE = merge + +[repository.signing] +DEFAULT_TRUST_MODEL = committer + +[oauth2] +JWT_SECRET = B9-fl0Vw1GBb5bzq3HEqTGkZR7LoX0jGP0hk_CzgfX4 diff --git a/trac/.gitignore b/trac/.gitignore new file mode 100644 index 0000000..d39ff0d --- /dev/null +++ b/trac/.gitignore @@ -0,0 +1,7 @@ +/backup/* +/log/* +/project/* +/public_html/* +/repos/* +!.gitkeep +!.gitignore \ No newline at end of file diff --git a/trac/backup/.gitkeep b/trac/backup/.gitkeep new file mode 100644 index 0000000..120f485 --- /dev/null +++ b/trac/backup/.gitkeep @@ -0,0 +1,2 @@ +* +!/.gitignore diff --git a/trac/project/.gitignore b/trac/project/.gitignore deleted file mode 100644 index c96a04f..0000000 --- a/trac/project/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore \ No newline at end of file diff --git a/trac/public_html/.gitignore b/trac/public_html/.gitignore deleted file mode 100644 index f59ec20..0000000 --- a/trac/public_html/.gitignore +++ /dev/null @@ -1 +0,0 @@ -* \ No newline at end of file diff --git a/trac/repos/.gitignore b/trac/repos/.gitignore deleted file mode 100644 index f59ec20..0000000 --- a/trac/repos/.gitignore +++ /dev/null @@ -1 +0,0 @@ -* \ No newline at end of file