Jelajahi Sumber

add CODEOWNERS

Christian Winther 1 tahun lalu
induk
melakukan
49a778d128
4 mengubah file dengan 27 tambahan dan 6 penghapusan
  1. 7 4
      .env.docker
  2. 18 0
      CODEOWNERS
  3. 1 1
      Dockerfile
  4. 1 1
      docker/shared/root/docker/entrypoint.d/02-check-config.sh

+ 7 - 4
.env.docker

@@ -18,12 +18,14 @@
 
 # The name/title for your site
 # @see https://docs.pixelfed.org/technical-documentation/config/#app_name-1
+# @dottie/example My Pixelfed Site
 # @dottie/validate required,ne=My Pixelfed Site
-APP_NAME="My Pixelfed Site"
+APP_NAME=
 
 # Application domain used for routing. (e.g., pixelfed.org)
 #
 # @see https://docs.pixelfed.org/technical-documentation/config/#app_domain
+# @dottie/example example.com
 # @dottie/validate required,ne=example.com,fqdn
 APP_DOMAIN="example.com"
 
@@ -368,8 +370,8 @@ DB_USERNAME="pixelfed"
 # Use a site like https://pwgen.io/ to generate it
 #
 # @see https://docs.pixelfed.org/technical-documentation/config/#db_password
-# @dottie/validate required,ne=__CHANGE_ME__
-DB_PASSWORD="__CHANGE_ME__"
+# @dottie/validate required
+DB_PASSWORD=
 
 # @see https://docs.pixelfed.org/technical-documentation/config/#db_database
 # @dottie/validate required
@@ -890,6 +892,7 @@ SESSION_DRIVER="redis"
 # 32 character string, otherwise these encrypted strings will not be safe.
 #
 # @see https://docs.pixelfed.org/technical-documentation/config/#app_key
+# @dottie/validate required
 APP_KEY=
 
 # Prefix for container names (without any dash at the end)
@@ -1226,4 +1229,4 @@ DOCKER_PROXY_LETSENCRYPT_EMAIL="${INSTANCE_CONTACT_EMAIL:?error}"
 # Lets Encrypt staging/test servers for certificate requests.
 #
 # Setting this to any value will change to letsencrypt test servers.
-DOCKER_PROXY_LETSENCRYPT_TEST="1"
+#DOCKER_PROXY_LETSENCRYPT_TEST="1"

+ 18 - 0
CODEOWNERS

@@ -0,0 +1,18 @@
+# See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
+
+# These owners will be the default owners for everything in
+# the repo. Unless a later match takes precedence,
+*           @dansup
+
+# Docker related files
+.editorconfig               @jippi @dansup
+.env                        @jippi @dansup
+.env.*                      @jippi @dansup
+.hadolint.yaml              @jippi @dansup
+.shellcheckrc               @jippi @dansup
+/.github/                   @jippi @dansup
+/docker/                    @jippi @dansup
+/tests/                     @jippi @dansup
+docker-compose.migrate.yml  @jippi @dansup
+docker-compose.yml          @jippi @dansup
+goss.yaml                   @jippi @dansup

+ 1 - 1
Dockerfile

@@ -21,7 +21,7 @@ ARG FOREGO_VERSION="0.17.2"
 ARG GOMPLATE_VERSION="v3.11.6"
 
 # See: https://github.com/jippi/dottie
-ARG DOTTIE_VERSION="v0.7.0"
+ARG DOTTIE_VERSION="v0.7.1"
 
 ###
 # PHP base configuration

+ 1 - 1
docker/shared/root/docker/entrypoint.d/02-check-config.sh

@@ -17,5 +17,5 @@ for file in "${dot_env_files[@]}"; do
     # which do not (and should not) exists inside the container
     #
     # We disable fixer since its not interactive anyway
-    run-as-current-user dottie validate --file "${file}" --ignore-rule dir,file --no-fix
+    run-as-current-user dottie validate --file "${file}" --ignore-rule dir,file --exclude-prefix APP_KEY --no-fix
 done