Claude Add complete API files with filesystem endpoints
This commit is contained in:
50
config/allowed_paths.yaml
Normal file
50
config/allowed_paths.yaml
Normal file
@ -0,0 +1,50 @@
|
||||
# Configuration des chemins autorisés pour l'accès fichiers
|
||||
# Format YAML
|
||||
|
||||
# Chemins autorisés en LECTURE
|
||||
allowed_read_paths:
|
||||
- /var/www/mathematiques
|
||||
- /var/www/html
|
||||
- /enseignement
|
||||
|
||||
# Chemins autorisés en ÉCRITURE (pour plus tard)
|
||||
allowed_write_paths:
|
||||
- /var/www/mathematiques/_generated
|
||||
- /var/www/mathematiques/uploads
|
||||
|
||||
# Chemins BLOQUÉS (sécurité)
|
||||
blocked_paths:
|
||||
- /etc
|
||||
- /root
|
||||
- /home
|
||||
- /boot
|
||||
- /sys
|
||||
- /proc
|
||||
- /.ssh
|
||||
- /var/log
|
||||
|
||||
# Extensions de fichiers autorisées
|
||||
allowed_extensions:
|
||||
- .php
|
||||
- .html
|
||||
- .css
|
||||
- .js
|
||||
- .json
|
||||
- .xml
|
||||
- .txt
|
||||
- .md
|
||||
- .sql
|
||||
- .py
|
||||
- .sh
|
||||
- .conf
|
||||
- .yaml
|
||||
- .yml
|
||||
|
||||
# Taille maximale de fichier (en octets)
|
||||
max_file_size: 10485760 # 10 MB
|
||||
|
||||
# Nombre max de fichiers retournés par listing
|
||||
max_files_listing: 1000
|
||||
|
||||
# Profondeur max pour récursion
|
||||
max_recursion_depth: 10
|
||||
Reference in New Issue
Block a user