commit 13d1a622f1b3ca68d401f3b933be5d9c5f41cebf Author: Supervisor Date: Thu Aug 20 19:28:19 2026 +0200 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad2cb87 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +data/ +log/ diff --git a/config.bak-20260820/app.ini b/config.bak-20260820/app.ini new file mode 100644 index 0000000..c6ed35a --- /dev/null +++ b/config.bak-20260820/app.ini @@ -0,0 +1,107 @@ +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 = git.vicinodicasadigitale.it +HTTP_PORT = 3000 +ROOT_URL = http://git.vicinodicasadigitale.it: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 = git.vicinodicasadigitale.it +LFS_JWT_SECRET = wqHqtNL6WXBceDmX73BFsaMW6KF4SGfTw3ER9RjySbU + +[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.eyJuYmYiOjE3ODE2MjI3ODR9.AANlQzbuAfBAqf22XzzSXPK6-TkU5iVQu0xnTEeRJLk +PASSWORD_HASH_ALGO = pbkdf2 + +[service] +DISABLE_REGISTRATION = true +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.git.vicinodicasadigitale.it +DISABLE_EXPLORE_PAGE = true + +[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 = ZYmytITi6Tg1RKkQpDE_wEJDROYROFev8xbs63yJkDk + +[mailer] +ENABLED = true +FROM = noreply@vicinodicasadigitale.it +PROTOCOL = smtps +SMTP_ADDR = smtps.aruba.it +SMTP_PORT = 465 +USER = noreply@vicinodicasadigitale.it +PASSWD = `Os1zfxcW5%E^` diff --git a/config/app.ini b/config/app.ini new file mode 100644 index 0000000..c6ed35a --- /dev/null +++ b/config/app.ini @@ -0,0 +1,107 @@ +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 = git.vicinodicasadigitale.it +HTTP_PORT = 3000 +ROOT_URL = http://git.vicinodicasadigitale.it: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 = git.vicinodicasadigitale.it +LFS_JWT_SECRET = wqHqtNL6WXBceDmX73BFsaMW6KF4SGfTw3ER9RjySbU + +[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.eyJuYmYiOjE3ODE2MjI3ODR9.AANlQzbuAfBAqf22XzzSXPK6-TkU5iVQu0xnTEeRJLk +PASSWORD_HASH_ALGO = pbkdf2 + +[service] +DISABLE_REGISTRATION = true +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.git.vicinodicasadigitale.it +DISABLE_EXPLORE_PAGE = true + +[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 = ZYmytITi6Tg1RKkQpDE_wEJDROYROFev8xbs63yJkDk + +[mailer] +ENABLED = true +FROM = noreply@vicinodicasadigitale.it +PROTOCOL = smtps +SMTP_ADDR = smtps.aruba.it +SMTP_PORT = 465 +USER = noreply@vicinodicasadigitale.it +PASSWD = `Os1zfxcW5%E^` diff --git a/data.bak-20260820/home/.gitconfig b/data.bak-20260820/home/.gitconfig new file mode 100644 index 0000000..ec57bef --- /dev/null +++ b/data.bak-20260820/home/.gitconfig @@ -0,0 +1,22 @@ +[diff] + algorithm = histogram +[core] + logallrefupdates = true + quotePath = false + commitGraph = true +[gc] + reflogexpire = 90 + writeCommitGraph = true +[user] + name = Gitea + email = gitea@fake.local +[receive] + advertisePushOptions = true + procReceiveRefs = refs/for +[fetch] + writeCommitGraph = true +[safe] + directory = * +[uploadpack] + allowfilter = true + allowAnySHA1InWant = true diff --git a/data.bak-20260820/queues/common/000024.log b/data.bak-20260820/queues/common/000024.log new file mode 100644 index 0000000..3e0eff6 Binary files /dev/null and b/data.bak-20260820/queues/common/000024.log differ diff --git a/data.bak-20260820/queues/common/000026.ldb b/data.bak-20260820/queues/common/000026.ldb new file mode 100644 index 0000000..b232835 Binary files /dev/null and b/data.bak-20260820/queues/common/000026.ldb differ diff --git a/data.bak-20260820/queues/common/CURRENT b/data.bak-20260820/queues/common/CURRENT new file mode 100644 index 0000000..f622090 --- /dev/null +++ b/data.bak-20260820/queues/common/CURRENT @@ -0,0 +1 @@ +MANIFEST-000025 diff --git a/data.bak-20260820/queues/common/CURRENT.bak b/data.bak-20260820/queues/common/CURRENT.bak new file mode 100644 index 0000000..e60e154 --- /dev/null +++ b/data.bak-20260820/queues/common/CURRENT.bak @@ -0,0 +1 @@ +MANIFEST-000021 diff --git a/data.bak-20260820/queues/common/LOCK b/data.bak-20260820/queues/common/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/data.bak-20260820/queues/common/LOG b/data.bak-20260820/queues/common/LOG new file mode 100644 index 0000000..c91163b --- /dev/null +++ b/data.bak-20260820/queues/common/LOG @@ -0,0 +1,105 @@ +=============== Jun 16, 2026 (CEST) =============== +17:13:07.450630 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +17:13:07.459998 db@open opening +17:13:07.460324 version@stat F·[] S·0B[] Sc·[] +17:13:07.463348 db@janitor F·2 G·0 +17:13:07.463425 db@open done T·3.36048ms +=============== Jun 16, 2026 (CEST) =============== +17:21:21.407140 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +17:21:21.407371 version@stat F·[] S·0B[] Sc·[] +17:21:21.407392 db@open opening +17:21:21.407436 journal@recovery F·1 +17:21:21.407504 journal@recovery recovering @1 +17:21:21.411937 memdb@flush created L0@2 N·28 S·574B "act..igh,v28":"web..low,v19" +17:21:21.412094 version@stat F·[1] S·574B[574B] Sc·[0.25] +17:21:21.422580 db@janitor F·3 G·0 +17:21:21.422611 db@open done T·15.208125ms +=============== Jun 20, 2026 (CEST) =============== +10:10:08.947270 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +10:10:08.947507 version@stat F·[1] S·574B[574B] Sc·[0.25] +10:10:08.947517 db@open opening +10:10:08.947568 journal@recovery F·1 +10:10:08.947655 journal@recovery recovering @3 +10:10:08.951956 memdb@flush created L0@5 N·88 S·1KiB "pus..\x00\x00\x00,d33":"rep..e-5,v96" +10:10:08.952098 version@stat F·[2] S·2KiB[2KiB] Sc·[0.50] +10:10:08.961778 db@janitor F·4 G·0 +10:10:08.961813 db@open done T·14.287014ms +10:10:44.199020 table@compaction L0·2 -> L1·0 S·2KiB Q·118 +10:10:44.203457 table@build created L1@8 N·28 S·579B "act..igh,v28":"web..low,v19" +10:10:44.203507 version@stat F·[0 1] S·579B[0B 579B] Sc·[0.00 0.00] +10:10:44.207278 table@compaction committed F-1 S-1KiB Ke·0 D·88 T·8.189323ms +10:10:44.207382 table@remove removed @5 +10:10:44.207474 table@remove removed @2 +=============== Jun 20, 2026 (CEST) =============== +10:15:08.358866 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +10:15:08.359094 version@stat F·[0 1] S·579B[0B 579B] Sc·[0.00 0.00] +10:15:08.359108 db@open opening +10:15:08.359165 journal@recovery F·1 +10:15:08.359293 journal@recovery recovering @6 +10:15:08.359470 version@stat F·[0 1] S·579B[0B 579B] Sc·[0.00 0.00] +10:15:08.369482 db@janitor F·3 G·0 +10:15:08.369511 db@open done T·10.391535ms +=============== Jun 21, 2026 (CEST) =============== +10:15:15.214706 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +10:15:15.215035 version@stat F·[0 1] S·579B[0B 579B] Sc·[0.00 0.00] +10:15:15.215065 db@open opening +10:15:15.215150 journal@recovery F·1 +10:15:15.215468 journal@recovery recovering @9 +10:15:15.225038 memdb@flush created L0@11 N·96 S·1KiB "act..\x00\x00\x00,d197":"rep..e-5,v155" +10:15:15.228837 version@stat F·[1 1] S·2KiB[1KiB 579B] Sc·[0.25 0.00] +10:15:15.240317 db@janitor F·4 G·0 +10:15:15.240375 db@open done T·25.291492ms +10:15:22.477324 table@compaction L0·1 -> L1·1 S·2KiB Q·215 +10:15:22.482302 table@build created L1@14 N·28 S·585B "act..igh,v194":"web..low,v19" +10:15:22.482378 version@stat F·[0 1] S·585B[0B 585B] Sc·[0.00 0.00] +10:15:22.485557 table@compaction committed F-1 S-1KiB Ke·0 D·96 T·8.165457ms +10:15:22.485687 table@remove removed @11 +10:15:22.485748 table@remove removed @8 +=============== Jun 24, 2026 (CEST) =============== +09:18:17.613611 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:18:17.613868 version@stat F·[0 1] S·585B[0B 585B] Sc·[0.00 0.00] +09:18:17.613878 db@open opening +09:18:17.613925 journal@recovery F·1 +09:18:17.614005 journal@recovery recovering @12 +09:18:17.618299 memdb@flush created L0@15 N·148 S·2KiB "act..\x00\x00\x00,d310":"rep..e-4,v300" +09:18:17.618516 version@stat F·[1 1] S·3KiB[2KiB 585B] Sc·[0.25 0.00] +09:18:17.628036 db@janitor F·4 G·0 +09:18:17.628092 db@open done T·14.204432ms +09:18:22.859815 table@compaction L0·1 -> L1·1 S·3KiB Q·366 +09:18:22.866741 table@build created L1@18 N·28 S·600B "act..igh,v307":"web..low,v19" +09:18:22.866807 version@stat F·[0 1] S·600B[0B 600B] Sc·[0.00 0.00] +09:18:22.870062 table@compaction committed F-1 S-2KiB Ke·0 D·148 T·9.449306ms +09:18:22.870178 table@remove removed @15 +09:18:22.870295 table@remove removed @14 +=============== Jul 2, 2026 (CEST) =============== +19:14:37.324803 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +19:14:37.328010 version@stat F·[0 1] S·600B[0B 600B] Sc·[0.00 0.00] +19:14:37.328026 db@open opening +19:14:37.328776 journal@recovery F·1 +19:14:37.328873 journal@recovery recovering @16 +19:14:37.335408 memdb@flush created L0@19 N·328 S·4KiB "act..\x00\x00\x00,d571":"rep..e-5,v393" +19:14:37.336700 version@stat F·[1 1] S·5KiB[4KiB 600B] Sc·[0.25 0.00] +19:14:37.346774 db@janitor F·4 G·0 +19:14:37.346803 db@open done T·18.766622ms +19:14:42.627881 table@compaction L0·1 -> L1·1 S·5KiB Q·717 +19:14:42.631711 table@build created L1@22 N·30 S·644B "act..igh,v590":"web..low,v19" +19:14:42.631754 version@stat F·[0 1] S·644B[0B 644B] Sc·[0.00 0.00] +19:14:42.634545 table@compaction committed F-1 S-4KiB Ke·0 D·326 T·6.620806ms +19:14:42.634634 table@remove removed @19 +19:14:42.634684 table@remove removed @18 +=============== Aug 11, 2026 (CEST) =============== +18:03:17.211035 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +18:03:17.214572 version@stat F·[0 1] S·644B[0B 644B] Sc·[0.00 0.00] +18:03:17.214592 db@open opening +18:03:17.215319 journal@recovery F·1 +18:03:17.215439 journal@recovery recovering @20 +18:03:17.223146 memdb@flush created L0@23 N·620 S·8KiB "act..\x00\x00\x00,d707":"rep..e-5,v822" +18:03:17.224197 version@stat F·[1 1] S·9KiB[8KiB 644B] Sc·[0.25 0.00] +18:03:17.234191 db@janitor F·4 G·0 +18:03:17.234237 db@open done T·19.620909ms +18:03:24.394085 table@compaction L0·1 -> L1·1 S·9KiB Q·1314 +18:03:24.398158 table@build created L1@26 N·30 S·638B "act..igh,v835":"web..low,v19" +18:03:24.398202 version@stat F·[0 1] S·638B[0B 638B] Sc·[0.00 0.00] +18:03:24.400989 table@compaction committed F-1 S-8KiB Ke·0 D·620 T·6.810397ms +18:03:24.401083 table@remove removed @23 +18:03:24.401181 table@remove removed @22 diff --git a/data.bak-20260820/queues/common/MANIFEST-000025 b/data.bak-20260820/queues/common/MANIFEST-000025 new file mode 100644 index 0000000..3dd883b Binary files /dev/null and b/data.bak-20260820/queues/common/MANIFEST-000025 differ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..31354ea --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,29 @@ +name: gitea +services: + gitea: + image: docker.io/gitea/gitea:latest-rootless + restart: always + user: 1001 + networks: + - gitea_default + - services_network + ports: + - "3000:3000" + - "2222:2222" + volumes: + - ./data:/var/lib/gitea + - ./config:/etc/gitea + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + environment: + - GITEA__server__DOMAIN=git.vicinodicasadigitale.it + - GITEA__server__ROOT_URL=http://git.vicinodicasadigitale.it:3000/ + - GITEA__server__SSH_PORT=2222 + - GITEA__server__SSH_LISTEN_PORT=2222 + - GITEA__database__DB_TYPE=sqlite3 + +networks: + gitea_default: + name: gitea_default + services_network: + external: true diff --git a/docker-compose.yml.20260616 b/docker-compose.yml.20260616 new file mode 100644 index 0000000..8a74f01 --- /dev/null +++ b/docker-compose.yml.20260616 @@ -0,0 +1,29 @@ +version: "3" +services: + gitea: + image: docker.io/gitea/gitea:latest-rootless + networks: + - gitea_default + - proxy_network + container_name: gitea + ports: + - "3000:3000" + - "2222:2222" + volumes: + - gitea-data:/var/lib/gitea + - /etc/localtime:/etc/localtime:ro + environment: + - GITEA__server__DOMAIN=git.vicinodicasadigitale.it + - GITEA__server__ROOT_URL=http://git.vicinodicasadigitale.it:3000/ + - GITEA__server__SSH_PORT=2222 + - GITEA__server__SSH_LISTEN_PORT=2222 + - GITEA__database__DB_TYPE=sqlite3 + +volumes: + gitea-data: + +networks: + gitea_default: + name: gitea_default + proxy_network: + external: true diff --git a/docker-compose.yml.bk b/docker-compose.yml.bk new file mode 100644 index 0000000..152042e --- /dev/null +++ b/docker-compose.yml.bk @@ -0,0 +1,24 @@ +version: "3" +services: + gitea: + image: docker.io/gitea/gitea:1.26.2-rootless + networks: + # - proxy_network + - gitea_default + container_name: gitea + ports: + - "3000:3000" + - "2222:2222" + volumes: + - gitea-data:/var/lib/gitea + - /etc/localtime:/etc/localtime:ro + environment: + - GITEA__server__DOMAIN=git.vicinodicasadigitale.it + - GITEA__server__ROOT_URL=http://git.vicinodicasadigitale.it:3000/ + - GITEA__server__SSH_PORT=2222 + - GITEA__server__SSH_LISTEN_PORT=2222 + - GITEA__database__DB_TYPE=sqlite3 + +volumes: + gitea-data: + driver: bridge