security: Remove sensitive credentials from repository
- Remove .pmomusic.yml from git tracking (contains passwords) - Add .pmomusic.yml.example as template without sensitive data - Add SECURITY_CONFIG.md with setup instructions - Credentials should be configured locally or via environment variables This change prevents accidental exposure of Qobuz credentials. Users must copy .pmomusic.yml.example to .pmomusic.yml and configure their own credentials.
This commit is contained in:
28
.pmomusic.yml.example
Normal file
28
.pmomusic.yml.example
Normal file
@@ -0,0 +1,28 @@
|
||||
host:
|
||||
http_port: '8080'
|
||||
cover_cache:
|
||||
directory: ./.pmomusic_covers
|
||||
size: 2000
|
||||
audio_cache:
|
||||
directory: ./.pmomusic_audio
|
||||
size: 500
|
||||
logger:
|
||||
buffer_capacity: 200
|
||||
enable_console: true
|
||||
min_level: TRACE
|
||||
mediarenderer:
|
||||
mpd_renderer: null
|
||||
mediaserver:
|
||||
qobuz:
|
||||
udn: uuid:28963b75-4c5f-4da7-b10e-ffafd
|
||||
accounts:
|
||||
qobuz:
|
||||
username: your-email@example.com
|
||||
password: 'YOUR_PASSWORD_HERE'
|
||||
devices:
|
||||
mediarenderer:
|
||||
pmo_mediarenderer:
|
||||
udn: 15a13316-daac-47f0-b64e-47e56f5e3b51
|
||||
mediaserver:
|
||||
pmo_mediaserver:
|
||||
udn: 23df0bfa-cfef-4724-b731-00f66fadf176
|
||||
27
SECURITY_CONFIG.md
Normal file
27
SECURITY_CONFIG.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Configuration Sécurisée
|
||||
|
||||
## Configuration de PMOMusic
|
||||
|
||||
Le fichier `.pmomusic.yml` contient des informations sensibles (mots de passe, identifiants).
|
||||
|
||||
### Installation
|
||||
|
||||
1. Copiez le fichier exemple :
|
||||
```bash
|
||||
cp .pmomusic.yml.example .pmomusic.yml
|
||||
```
|
||||
|
||||
2. Éditez `.pmomusic.yml` et remplacez les valeurs par vos véritables identifiants :
|
||||
- `accounts.qobuz.username` : votre email Qobuz
|
||||
- `accounts.qobuz.password` : votre mot de passe Qobuz
|
||||
|
||||
3. **Important** : Ne commitez JAMAIS le fichier `.pmomusic.yml` dans git !
|
||||
- Il est déjà dans `.gitignore`
|
||||
- Utilisez des variables d'environnement pour la production
|
||||
|
||||
## Variables d'environnement (recommandé pour production)
|
||||
|
||||
```bash
|
||||
export QOBUZ_USERNAME="votre-email@example.com"
|
||||
export QOBUZ_PASSWORD="votre-mot-de-passe"
|
||||
```
|
||||
Reference in New Issue
Block a user