mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-30 20:24:08 -06:00
refactor: move R2 credentials from env vars to chezmoi templates
This commit is contained in:
@@ -70,12 +70,6 @@ $env.MICRO_TRUECOLOR = 1
|
||||
# OpenAI API Key
|
||||
$env.OPENAI_API_KEY = "{{ dopplerProjectJson.OPENAI_CHATGPT_CLI }}"
|
||||
|
||||
# R2 configuration
|
||||
$env.R2_ENDPOINT = "{{ dopplerProjectJson.R2_ENDPOINT }}"
|
||||
$env.R2_ACCESS_KEY_ID = "{{ dopplerProjectJson.R2_ACCESS_KEY_ID }}"
|
||||
$env.R2_SECRET_ACCESS_KEY = "{{ dopplerProjectJson.R2_SECRET_ACCESS_KEY }}"
|
||||
$env.R2_BUCKET = "{{ dopplerProjectJson.R2_BUCKET }}"
|
||||
|
||||
# Initialize PATH as a list for easier manipulation
|
||||
$env.PATH = ($env.PATH | split row (char esep))
|
||||
|
||||
|
||||
@@ -11,12 +11,6 @@ set -gx TERM xterm-256color # fixes terminal colors when ssh'ing into laptop
|
||||
|
||||
set -gx OPENAI_API_KEY "{{ dopplerProjectJson.OPENAI_CHATGPT_CLI }}"
|
||||
|
||||
# R2 configuration
|
||||
set -gx R2_ENDPOINT "{{ dopplerProjectJson.R2_ENDPOINT }}"
|
||||
set -gx R2_ACCESS_KEY_ID "{{ dopplerProjectJson.R2_ACCESS_KEY_ID }}"
|
||||
set -gx R2_SECRET_ACCESS_KEY "{{ dopplerProjectJson.R2_SECRET_ACCESS_KEY }}"
|
||||
set -gx R2_BUCKET "{{ dopplerProjectJson.R2_BUCKET }}"
|
||||
|
||||
# Tools are organized in priority order (first = highest priority in PATH)
|
||||
# This order matches the Bash config for consistency
|
||||
# Batched for performance - reduces startup time by ~13ms
|
||||
|
||||
@@ -11,12 +11,6 @@ export TERM=xterm-256color # fixes terminal colors when ssh'ing into laptop
|
||||
|
||||
export OPENAI_API_KEY="{{ dopplerProjectJson.OPENAI_CHATGPT_CLI }}"
|
||||
|
||||
# R2 configuration
|
||||
export R2_ENDPOINT="{{ dopplerProjectJson.R2_ENDPOINT }}"
|
||||
export R2_ACCESS_KEY_ID="{{ dopplerProjectJson.R2_ACCESS_KEY_ID }}"
|
||||
export R2_SECRET_ACCESS_KEY="{{ dopplerProjectJson.R2_SECRET_ACCESS_KEY }}"
|
||||
export R2_BUCKET="{{ dopplerProjectJson.R2_BUCKET }}"
|
||||
|
||||
# hishtory configuration
|
||||
export HISHTORY_SERVER="https://hsh.{{ dopplerProjectJson.PRIVATE_DOMAIN }}"
|
||||
|
||||
|
||||
+4
-4
@@ -72,10 +72,10 @@ const REQUIRED_ENV = [
|
||||
"R2_BUCKET",
|
||||
];
|
||||
const ENV = {
|
||||
endpoint: process.env.R2_ENDPOINT || "",
|
||||
accessKeyId: process.env.R2_ACCESS_KEY_ID || "",
|
||||
secretAccessKey: process.env.R2_SECRET_ACCESS_KEY || "",
|
||||
bucket: process.env.R2_BUCKET || "",
|
||||
endpoint: "{{ dopplerProjectJson.R2_ENDPOINT }}",
|
||||
accessKeyId: "{{ dopplerProjectJson.R2_ACCESS_KEY_ID }}",
|
||||
secretAccessKey: "{{ dopplerProjectJson.R2_SECRET_ACCESS_KEY }}",
|
||||
bucket: "{{ dopplerProjectJson.R2_BUCKET }}",
|
||||
};
|
||||
|
||||
const TIMING = {
|
||||
Reference in New Issue
Block a user