0a4ba2001b
modified: .env.example new file: compta/__pycache__/__init__.cpython-310.pyc new file: compta/__pycache__/admin.cpython-310.pyc new file: compta/__pycache__/apps.cpython-310.pyc new file: compta/__pycache__/models.cpython-310.pyc modified: compta/admin.py new file: compta/categories_indy.py modified: compta/indy.py modified: compta/management/commands/seed_reference.py new file: compta/migrations/0010_categorie_compte_pcg.py modified: compta/models.py modified: compta/templates/compta/base.html new file: compta/templates/compta/gestion.html modified: compta/urls.py new file: compta/views_gestion.py new file: config/__pycache__/__init__.cpython-310.pyc new file: config/__pycache__/settings.cpython-310.pyc modified: config/settings.py modified: entrypoint.sh
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
# Copie ce fichier en .env et renseigne tes valeurs.
|
|
# En production (Portainer), saisis plutôt ces variables dans l'interface.
|
|
|
|
# Sécurité Django
|
|
DJANGO_SECRET_KEY=change-moi-avec-une-longue-chaine-aleatoire
|
|
DJANGO_DEBUG=0
|
|
# Domaine Traefik + accès direct éventuel (IP de l'hôte Docker / localhost)
|
|
DJANGO_ALLOWED_HOSTS=compta.lespatas.ovh,localhost,127.0.0.1
|
|
# Origine HTTPS servie par Traefik — le schéma https:// est OBLIGATOIRE
|
|
DJANGO_CSRF_TRUSTED_ORIGINS=https://compta.lespatas.ovh
|
|
|
|
# Derrière Traefik (reverse-proxy distant qui termine le TLS) : mets 1.
|
|
# Django reconnaît alors le HTTPS via X-Forwarded-Proto et sécurise les cookies.
|
|
DJANGO_BEHIND_PROXY=1
|
|
# Laisse 0 : c'est Traefik qui redirige HTTP->HTTPS.
|
|
DJANGO_SSL_REDIRECT=0
|
|
|
|
# PostgreSQL EXISTANT (ne pas héberger de base ici)
|
|
DB_NAME=compta
|
|
DB_USER=jb
|
|
DB_PASSWORD=ton_mot_de_passe
|
|
DB_HOST=192.168.1.40
|
|
DB_PORT=5432
|
|
|
|
# Compte admin créé au 1er démarrage
|
|
DJANGO_SUPERUSER_USERNAME=admin
|
|
DJANGO_SUPERUSER_PASSWORD=change-moi
|
|
DJANGO_SUPERUSER_EMAIL=admin@example.fr
|
|
|
|
# Données d'exemple au 1er démarrage (1 = oui, 0 = non)
|
|
SEED_DEMO=0
|