From 2ddc9856ddbab0e5ea2a340c49ac5c4d805f49aa Mon Sep 17 00:00:00 2001 From: admin_jk Date: Tue, 17 Feb 2026 09:14:31 -0700 Subject: [PATCH] updated gitignore --- .gitignore | 239 ++++++++++++++++------------------------------------- 1 file changed, 72 insertions(+), 167 deletions(-) diff --git a/.gitignore b/.gitignore index deef190..39d5f06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # =========================== -# 1. SECRETS (Must Block) +# 1. SECRETS & ENVIRONMENT (CRITICAL) # =========================== .env .env.* @@ -9,9 +9,12 @@ *.crt *.tfstate *.tfvars +*.tfvars.json +override.tf +override.tf.json # =========================== -# 2. GLOBAL GENERICS +# 2. SYSTEM & LOGS (Junk) # =========================== **/logs/ **/log/ @@ -21,194 +24,96 @@ **/backups/ **/Backups/ **/BT_Backup/ +*.log +crash.log *.DS_Store Thumbs.db -*.fastresume -*.torrent -*.jpg -*.vtt lost+found # =========================== -# 3. DATABASES (Heavy Data) +# 3. DATABASES & BINARIES (Heavy Files) # =========================== -**/db/ +# SQLite (Standard for *arrs, HA, etc) +*.db +*.db-shm +*.db-wal +*.sqlite +*.sqlite3 +*.sqlite-wal +*.sqlite-shm + +# Heavy Directories **/mysql/ **/postgres/ **/postgres_data/ **/prometheus-db/ **/grafana-db/ -**/alertmanager-db/ -**/stash-db/ -**/wud-db/ -**/pg_subtrans -**/pg_wal -**/index-v2/ -*.db-shm -**/komodo-postgres/ -*.db -*.db-wal +**/influxdb/ +**/mariadb/ +**/mongo/ -# =========================== -# 4. SERVARR STACK (Radarr/Sonarr/Lidarr) -# =========================== -# The posters/banners (Huge) -MediaCover/ -# Error reporting cache -Sentry/ -# ASP.NET temporary files -asp/ -# Dupeguru scan results -scans/ - -# =========================== -# 5. MEDIA SERVERS (Plex/Jellyfin) -# =========================== -# Plex Metadata (Can be GBs in size) -**/Library/ -**/transcode/ -# Jellyfin metadata (if local) -**/metadata/ - -# =========================== -# 6. APP SPECIFIC -# =========================== -# SMTP Relay Queue -**/queue/ -# Node-Red dependencies -**/node_modules/ -# Home Assistant State Registry (Contains secrets) -**/.storage/ -# Text-to-speech cache -**/tts/ -# Stash scrapers (often binary/heavy) -**/scrapers/ -**/smf/ - -# =========================== -# KOMODO DEPLOYMENT MANAGER -# =========================== -# Ignore Komodo's internal cache of git repos -**/komodo/repo-cache/ -**/komodo/core-etc/repos/ -**/komodo/periphery-etc/repos/ -# Ignore build artifacts -**/komodo/builders/ - -# =========================== -# 🚨 CRITICAL EXCLUSIONS 🚨 -# =========================== - -# 1. Gitea Data (PREVENTS INFINITE LOOP) -# This is where Gitea stores the bare repos. Never commit this. -**/gitea/git/ -**/gitea/gitea/ -**/gitea/ssh/ - -# 2. Komodo Internals (Huge Cache) -**/komodo/repo-cache/ -**/komodo/periphery-etc/ -**/komodo/builders/ - -# 3. Media & Assets (Huge User Data) -**/stash/data/ -**/MediaCover/ -**/metadata/ - -# 4. Jellyfin Cache/Metadata (Often inside config) -**/jellyfin/config/metadata/ -**/jellyfin/config/data/ -**/jellyfin/config/cache/ - -# =========================== -# HOME ASSISTANT CLEANUP -# =========================== -# System Cache & History -**/.cache/ -.ash_history -.bash_history -.HA_VERSION - -# =========================== -# TECHNITIUM CLEANUP -# =========================== -# Downloaded Apps/Plugins (Binaries, Zips, DLLs) -**/technitium/config/apps/ -# Blocklists -**/technitium/config/blocklists/ - - -# =========================== -# HOME ASSISTANT CLEANUP -# =========================== -# 1. Internal Caches & History -**/.cache/ -**/.storage/ -**/.HA_VERSION -**/.ash_history -**/.bash_history -**/.cloud/ -**/custom_components/ - -# 2. Dependencies (The 2000+ files usually live here) -**/deps/ -**/lib/ -**/site-packages/ -**/__pycache__/ - -# 3. Media & Backups -**/tts/ -**/backups/ -**/www/ -**/blueprints/ - -# 4. Databases & Logs -*.db -*.db-shm -*.db-wal -*.log - -# =========================== -# DATABASE & BACKUP BLOCKER -# =========================== -# Block all SQLite databases (Duplicati, Manyfold, Govee, etc.) -*.sqlite -*.sqlite3 -*.sqlite-wal -*.sqlite-shm -*.db -*.db3 - -# Block Large Binaries & Backups +# Archives & binaries *.tar *.tar.gz *.zip *.7z -*.mmdb *.iso +*.mmdb # =========================== -# APP SPECIFIC +# 4. APP SPECIFIC: HOME ASSISTANT # =========================== -# Duplicati: Block the heavy local databases, keep only json configs if needed -**/duplicati/data/ -**/duplicati/config/*.sqlite +# ONLY ignore the internal cache and auth. +# DO NOT ignore .storage (Dashboards) or custom_components (HACS) +**/.HA_VERSION +**/.cloud/ +**/deps/ +**/home-assistant_v2.db +**/home-assistant_v2.db-shm +**/home-assistant_v2.db-wal +**/tts/ -# QBittorrent: Block GeoIP databases -**/GeoDB/ +# OPTIONAL: Un-comment if you want to ignore HACS installs +# **/custom_components/ +# **/www/ +# =========================== +# 5. APP SPECIFIC: MEDIA & ARRS +# =========================== +# Metadata & Images (Can be GBs) +**/MediaCover/ +**/metadata/ +**/transcode/ +**/scans/ +**/scrapers/ -# Local setup folders +# Jellyfin/Plex specific +**/jellyfin/config/metadata/ +**/jellyfin/config/cache/ +**/Library/Application Support/Plex Media Server/Cache/ + +# =========================== +# 6. APP SPECIFIC: KOMODO & GITEA +# =========================== +# Prevent Infinite Loops in Gitea +**/gitea/git/ +**/gitea/gitea/ +**/gitea/ssh/ + +# Komodo Caches +**/komodo/repo-cache/ +**/komodo/builders/ + +# =========================== +# 7. MISC +# =========================== +# Node JS +**/node_modules/ + +# Terraform .terraform/ - -# State backup files (The cause of your current error) *.tfstate.backup -*.tfstate.*.backup -# Crash logs -crash.log - -# Ignore local secret files (if you use them) -*.tfvars.json -override.tf -override.tf.json \ No newline at end of file +# Technitium +**/technitium/config/apps/ +**/technitium/config/blocklists/ \ No newline at end of file