From e8adb7dc478b1593e248f0e34c44dfec024b10c9 Mon Sep 17 00:00:00 2001 From: xavier Date: Sat, 6 Jul 2024 23:01:15 +0200 Subject: [PATCH] Add better explanation for git privacity split --- .gitignore | 7 +++++++ .gitignore_public | 10 ++++------ README.md | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 52e6f28..86e498a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,12 @@ +# Two repositories are bound to this folder +# > the public version only expose infrastructure configuration +# >> specific ignores for it are located in .git_public/info/exclude (also hardlinked to .gitignore_public) .git_public +# > the private version contains sensitive data and more detailed configurations +# >> specific ignores for it are located in .git_private/info/exclude (also hardlinked to .gitignore_private) .git_private + +# These are common ignores for all repositories /#recycle @eaDir .DS_Store diff --git a/.gitignore_public b/.gitignore_public index c132e6d..85e4a04 100644 --- a/.gitignore_public +++ b/.gitignore_public @@ -1,9 +1,7 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ +## Specific ignores for public repository ## +# Note: Always work with this repository with an alias, as follows: +# alias gitpublic='git --git-dir=.git_public' + filebot/desktop/config filebot/licenses filebot/old diff --git a/README.md b/README.md index 872e3ec..399744c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Mangrana dockers configuration ## Note -This is the configuration of the dockers (image, volumes, ports...), not the configuration of each application, which is hidden from the version control tracking due to the high amount of files they have and their constantly change. Also because they use to contain sensitive information, such as endpoints and access credentials. +This is the configuration of the dockers (image, volumes, ports...), not the configuration of each application, which is hidden from the public audience because it uses to contain sensitive information, such as endpoints and access credentials. By this reason, I've enabled a two repository capability, so that I can persist the public and private domain information separately even though they live together in the same folder tree. ## What is this about? These sort of dockers conforms the majority of the services that represents my Automated Home Cinema system. ### Streaming service?