Statistics
| Branch: | Tag: | Revision:

root / snf-deploy / files / etc / synnefo / webproject.conf @ 952a28c0

History | View | Annotate | Download (1017 Bytes)

1 ad76b118 Dimitris Aragiorgis
from synnefo.lib.db.pooled_psycopg2 import monkey_patch_psycopg2
2 ad76b118 Dimitris Aragiorgis
monkey_patch_psycopg2()
3 ad76b118 Dimitris Aragiorgis
4 ad76b118 Dimitris Aragiorgis
from synnefo.lib.db.psyco_gevent import make_psycopg_green
5 ad76b118 Dimitris Aragiorgis
make_psycopg_green()
6 ad76b118 Dimitris Aragiorgis
7 ad76b118 Dimitris Aragiorgis
DATABASES = {
8 ad76b118 Dimitris Aragiorgis
 'default': {
9 ad76b118 Dimitris Aragiorgis
     # 'postgresql_psycopg2', 'postgresql','mysql', 'sqlite3' or 'oracle'
10 26f6ab93 Christos Stavrakakis
     'ENGINE': 'django.db.backends.postgresql_psycopg2',
11 ad76b118 Dimitris Aragiorgis
      # ATTENTION: This *must* be the absolute path if using sqlite3.
12 ad76b118 Dimitris Aragiorgis
      # See: http://docs.djangoproject.com/en/dev/ref/settings/#name
13 ad76b118 Dimitris Aragiorgis
     'OPTIONS': {
14 ad76b118 Dimitris Aragiorgis
        'synnefo_poolsize': 13,
15 ad76b118 Dimitris Aragiorgis
        },
16 ad76b118 Dimitris Aragiorgis
     'NAME': 'snf_apps',
17 ad76b118 Dimitris Aragiorgis
     'USER': '%SYNNEFO_USER%',                      # Not used with sqlite3.
18 ad76b118 Dimitris Aragiorgis
     'PASSWORD': '%SYNNEFO_DB_PASSWD%',          # Not used with sqlite3.
19 ad76b118 Dimitris Aragiorgis
     # Set to empty string for localhost. Not used with sqlite3.
20 ad76b118 Dimitris Aragiorgis
     'HOST': '%DB_NODE%',
21 ad76b118 Dimitris Aragiorgis
     # Set to empty string for default. Not used with sqlite3.
22 ad76b118 Dimitris Aragiorgis
     'PORT': '5432',
23 ad76b118 Dimitris Aragiorgis
 }
24 ad76b118 Dimitris Aragiorgis
}
25 ad76b118 Dimitris Aragiorgis
26 ad76b118 Dimitris Aragiorgis
SECRET_KEY = 'ly6)mw6a7x%n)-e#zzk4jo6f2=uqu!1o%)2-(7lo+f9yd^k^bg'
27 ad76b118 Dimitris Aragiorgis
USE_X_FORWARDED_HOST = True
28 ad76b118 Dimitris Aragiorgis
29 ad76b118 Dimitris Aragiorgis
SESSION_COOKIE_DOMAIN = "%DOMAIN%"