Skip to content

Commit f6e1751

Browse files
committed
try moving config
1 parent 5c3908e commit f6e1751

4 files changed

Lines changed: 22 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ jobs:
3535
sudo openssl pkcs12 -export -out certificate.pfx -inkey ${HOSTNAME}.boston-cloud.ts.net.key -in ${HOSTNAME}.boston-cloud.ts.net.crt -passout pass:
3636
sudo chown piuser. certificate.pfx
3737
38-
- name: Write environment variables to .env file
38+
- name: Write deployment variables to .env file
3939
env:
40-
GOVEE_API_KEY: ${{ secrets.GOVEE_API_KEY }}
4140
AIRPLAY_NAME: "${{ matrix.airplay_name }}"
4241
run: |
4342
cat > .env << EOF
44-
GOVEE_API_KEY=${GOVEE_API_KEY}
4543
AIRPLAY_NAME=${AIRPLAY_NAME}
4644
HOMESPEAKER_IMAGE=ghcr.io/${{ github.repository_owner }}/homespeaker:latest
4745
EOF

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ healthchecksdb
352352
.env
353353
.env.local
354354
.env.production
355+
homespeaker-secrets.env
355356
# Squad: ignore runtime state (logs, inbox, sessions)
356357
.squad/orchestration-log/
357358
.squad/log/

docker-compose.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ services:
2020
- "/sys/class/backlight/10-0045:/sys/class/backlight/10-0045"
2121
- airplay-shared:/tmp/airplay-shared # Shared volume for AirPlay state
2222
- /run/user/1000/pulse:/run/user/1000/pulse:rw
23+
# Persistent secrets file — create this once on each Pi, never committed to git.
24+
# See: /home/piuser/homespeaker-secrets.env (example below)
25+
env_file:
26+
- path: /home/piuser/homespeaker-secrets.env
27+
required: false # Gracefully skip if file doesn't exist yet
2328
depends_on:
2429
- aspire
2530
environment:
@@ -32,15 +37,13 @@ services:
3237
- OTEL_EXPORTER_OTLP_PROTOCOL=grpc
3338
- OTEL_EXPORTER_OTLP_ENDPOINT=http://aspire:18889
3439
- OTEL_SERVICE_NAME=HomeSpeaker
35-
- NIGHTSCOUT_URL=https://janedoe.azurewebsites.net
36-
- Temperature__ApiKey=${GOVEE_API_KEY}
3740
- PULSE_SERVER=unix:/run/user/1000/pulse/native
3841
networks:
3942
speakernet:
4043

4144
aspire:
4245
container_name: aspire
43-
image: mcr.microsoft.com/dotnet/aspire-dashboard:9.0
46+
image: mcr.microsoft.com/dotnet/aspire-dashboard
4447
environment:
4548
- DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS=true
4649
ports:

homespeaker-secrets.env.example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# HomeSpeaker secrets file
2+
# Copy this to /home/piuser/homespeaker-secrets.env on each Raspberry Pi.
3+
# That file is read by docker-compose at startup and on every manual restart.
4+
# It is never written or overwritten by the GitHub Actions deployment workflow.
5+
6+
# --- Nightscout ---
7+
# Your Nightscout CGM data URL (leave blank to disable the widget)
8+
NIGHTSCOUT_URL=https://your-name.azurewebsites.net
9+
10+
# --- Govee temperature sensors ---
11+
# Get your API key from the Govee Home app → Profile → About → Apply for API Key
12+
# Both values are required for the temperature widget to appear.
13+
Temperature__ApiKey=your-govee-api-key-here
14+
Temperature__ApiBaseUrl=https://openapi.api.govee.com

0 commit comments

Comments
 (0)