Browse Source

added production template

pull/1/head
Holger Frey 5 years ago
parent
commit
5a64b3355f
  1. BIN
      budgets/Budget-Vorlage-2020.xlsx
  2. 2
      budgets/recipients.txt
  3. 16
      development.ini
  4. 72
      production.ini.template

BIN
budgets/Budget-Vorlage-2020.xlsx

Binary file not shown.

2
budgets/recipients.txt

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
frey@imtek.de
brandstetter@imtek.de

16
development.ini

@ -29,7 +29,7 @@ mail.debug = 0 # SMTP debug level @@ -29,7 +29,7 @@ mail.debug = 0 # SMTP debug level
mail.debug_include_bcc = true # Include Bcc headers when Debugging
[pshell]
setup = ordr3.pshell.setup
setup = superx_budget.pshell.setup
###
# wsgi server configuration
@ -45,7 +45,7 @@ listen = localhost:6543 @@ -45,7 +45,7 @@ listen = localhost:6543
###
[loggers]
keys = root, ordr3, sqlalchemy
keys = root, superx_budget
[handlers]
keys = console
@ -57,18 +57,10 @@ keys = generic @@ -57,18 +57,10 @@ keys = generic
level = INFO
handlers = console
[logger_ordr3]
[logger_superx_budget]
level = DEBUG
handlers =
qualname = ordr3
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)
qualname = superx_budget
[handler_console]
class = StreamHandler

72
production.ini.template

@ -0,0 +1,72 @@ @@ -0,0 +1,72 @@
###
# app configuration
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
###
[app:main]
use = egg:superx_budget
pwd.db =
$argon2id$v=19$m=102400,t=2,p=8$f48xZqyVUsoZg5AyJmRszQ$5Bn/u67+2pHNBxe5g0UFnw
$argon2id$v=19$m=102400,t=2,p=8$vheCMKa0dq7V2nuPUWrtXQ$pfomI8eG74mKulf1Elp0JA
auth.secret = "change me in production"
session.secret = "change me in production"
budgets.dir = %(here)s/bugets
pyramid.reload_templates = false
pyramid.includes =
pyramid_mailer
mail.host = "localhost" # SMTP host
mail.port = 2525 # SMTP port
mail.username = "" # SMTP username
mail.password = "" # SMTP password
mail.tls = true # Use TLS
#mail.ssl = true # Use SSL
mail.default_sender = "" # Default from address
mail.debug = 0 # SMTP debug level
mail.debug_include_bcc = true # Include Bcc headers when Debugging
[pshell]
setup = superx_budget.pshell.setup
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
listen = localhost:6543
###
# logging configuration
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###
[loggers]
keys = root, superx_budget
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
[logger_superx_budget]
level = WARN
handlers =
qualname = superx_budget
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
Loading…
Cancel
Save