Files
jetson-agent/config/allowed_paths.yaml

51 lines
857 B
YAML

# 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