.secrets [RECOMMENDED]

Hong Kong Bus Forum
InfoLink by HKBRDA
現在的時間是 2026年3月9日 08:24:19

.secrets [RECOMMENDED]

# Secrets .secrets .secrets.* (using an env file)

/.secrets/ After adding the rule, run git status to verify that the file is listed under “untracked files” and not under “changes to be committed”. 5. Load the secrets in your code Below are examples for several popular languages/frameworks. .secrets

# 1️⃣ Ensure the file exists and is chmod 600 touch .secrets && chmod 600 .secrets # Secrets

my‑project/ │ ├─ src/ ├─ tests/ ├─ .gitignore └─ .. (outside) .secrets Add a rule to your .gitignore (or the ignore file of whatever VCS you use): # 1️⃣ Ensure the file exists and is chmod 600 touch

version: "3.9" services: web: build: . env_file: - .secrets # injected into container at runtime ports: - "8000:8000"

# .gitignore .secrets .secrets/ .secrets.* If you’re using a :

# 2️⃣ Add your key/value pairs echo "DB_PASSWORD=SuperSecret123!" >> .secrets

Powered by phpBB® Forum Software © phpBB Group
正體中文語系由 竹貓星球 維護製作