Made the appropriate changes to settings.py.dist
[flowspy] / settings.py.dist
index 9668998..acab5dd 100644 (file)
@@ -4,7 +4,7 @@ import os
 import djcelery
 djcelery.setup_loader()
 from celery.schedules import crontab
-DEBUG = True
+DEBUG = False
 TEMPLATE_DEBUG = DEBUG
 
 ADMINS = (
@@ -19,14 +19,14 @@ MANAGERS = ADMINS
 
 DATABASES = {
     'default': {
-        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-        'NAME': '',                      # Or path to database file if using sqlite3.
+        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+        'NAME': 'flowspec',                      # Or path to database file if using sqlite3.
         'USER': '',                      # Not used with sqlite3.
         'PASSWORD': '',                  # Not used with sqlite3.
         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
         'OPTIONS':  {
-        "init_command": "SET storage_engine=INNODB",
+        "init_command": "SET storage_engine=MYISAM",
         }
     }
 }
@@ -99,6 +99,7 @@ MIDDLEWARE_CLASSES = (
     'django.middleware.cache.UpdateCacheMiddleware',
     'django.middleware.common.CommonMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.middleware.locale.LocaleMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
@@ -112,10 +113,10 @@ AUTHENTICATION_BACKENDS = (
 
 ROOT_URLCONF = 'flowspy.urls'
 
-STATIC_URL = ''
+STATIC_URL = '/path/to/static'
 
 TEMPLATE_DIRS = (
-    '/home/leopoul/projects/flowspy/templates/',
+    '/path/to/templates/',
     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
     # Always use forward slashes, even on Windows.
     # Don't forget to use absolute paths, not relative paths.
@@ -130,7 +131,7 @@ INSTALLED_APPS = (
     'django.contrib.messages',
     'flowspec',
     'poller',
-#    'south',
+    'south',
     # Uncomment the next line to enable the admin:
     'django.contrib.admin',
     # Uncomment the next line to enable admin documentation:
@@ -138,6 +139,7 @@ INSTALLED_APPS = (
     'django_extensions',
     'djcelery',
     'peers',
+       'registration',
     'accounts'
 )
 
@@ -168,7 +170,7 @@ CELERY_CONCURRENCY = 1
 # List of modules to import when celery starts.
 CELERY_IMPORTS = ("flowspec.tasks", )
 
-SERVER_EMAIL = "noreply@grnet.gr"
+SERVER_EMAIL = "GRNET FoD Service <noreply@grnet.gr>"
 EMAIL_SUBJECT_PREFIX = "[FoD] "
 
 LOG_FILE_LOCATION = here("log")
@@ -179,22 +181,32 @@ POLL_SESSION_UPDATE = 60.0
 
 BROKER_URL = "beanstalk://localhost:11300//"
 
-SHIB_AUTH_AFFILIATION = 'urn:mace:grnet.gr:pki:user'
+SHIB_AUTH_ENTITLEMENT = 'urn:mace'
 SHIB_ADMIN_DOMAIN = 'grnet.gr'
-SHIB_LOGOUT_URL = 'https://netdev.grnet.gr/Shibboleth.sso/Logout'
+SHIB_LOGOUT_URL = 'https://example.com/Shibboleth.sso/Logout'
 
-HELPDESK_MAIL = ""
-NOC_MAIL = ""
+# BCC mail addresses
+NOTIFY_ADMIN_MAILS = ["admin@admin.com"]
 
 UI_USER_THEN_ACTIONS = ['discard', 'rate-limit']
+UI_USER_PROTOCOLS = ['icmp', 'tcp', 'udp']
 
 PROTECTED_SUBNETS = ['10.10.0.0/16']
 
-CELERYBEAT_SCHEDULE = {
-    # Executes every day at 01:35 AM 
+CELERYBEAT_SCHEDULE = { 
     "every-day-sync": {
         "task": "flowspec.tasks.check_sync",
         "schedule": crontab(minute=01, hour=01),
         "args": (),
     },
-}
\ No newline at end of file
+    "notify-expired": {
+        "task": "flowspec.tasks.notify_expired",
+        "schedule": crontab(minute=01, hour=02),
+        "args": (),
+    },
+}
+# whois
+PRIMARY_WHOIS = 'whois.grnet.gr'
+ALTERNATE_WHOIS = 'whois.ripe.net'
+
+ACCOUNT_ACTIVATION_DAYS = 7
\ No newline at end of file