configs.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # -*- coding: utf-8 -*-
  2. '''
  3. Gestor de nodos para LaOtraRed La Paz - El Alto
  4. Copyright (C) 2017 Rodrigo Garcia
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU Affero General Public License as
  7. published by the Free Software Foundation, either version 3 of the
  8. License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU Affero General Public License for more details.
  13. You should have received a copy of the GNU Affero General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. '''
  16. # configuraciones
  17. # Poner esto en False cuando se esta en produccion
  18. #DEBUG=False
  19. DEBUG=True
  20. DEPLOY=not DEBUG
  21. SECRET_KEY="llave secreta de desarrollo"
  22. USUARIO_ADMINISTRADOR="nombre usuario administrador"
  23. CLAVE_ADMINISTRADOR="clave de usuario administrador"
  24. # base de datos (sqlite3)
  25. #sqlite://<nohostname>/<path>
  26. DATABASE_NAME="sqlite:///database/gestor_nodos_lor.db"
  27. DATABASE_USERNAME="usuario"
  28. DATABASE_PASSWORD="password de usuario de base de datos"
  29. # email desde el que se envian notificaciones
  30. EMAIL_HOST = "correo.laotrared.net"
  31. EMAIL_PORT = "587"
  32. EMAIL_HOST_USER = "nodos"
  33. EMAIL_HOST_PASSWORD = "password del email del gestor de nodos"
  34. EMAIL_USE_TLS = True
  35. EMAIL_USE_SSL = False
  36. EMAIL_SSL_CERTFILE = "/ruta/hacia/archivo/de/certificado/ssl"
  37. EMAIL_SSL_KEYFILE = "/ruta/hacia/clave/ssl"
  38. EMAIL_TIMEOUT = 60
  39. # script generador de firmwares
  40. RUTA_SCRIPT_GENERADOR_FIRMWARES="/ruta/hacia/el/script"
  41. RUTA_IMAGENES_FIRMWARE_GENERADAS="/ruta/hacia/las/imagenes/de/firmware/generadas"