import djcelery
djcelery.setup_loader()
from celery.schedules import crontab
-
-DEBUG = True
+DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
- ('Admin', 'admin_mail@admin.ad'),
+ ('AdminName', 'adminmail@admin.com'),
)
-
here = lambda x: os.path.join(os.path.abspath(os.path.dirname(__file__)), x)
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",
+ }
}
}
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
+ #'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)
AUTHENTICATION_BACKENDS = (
ROOT_URLCONF = 'flowspy.urls'
-STATIC_URL = '/home/leopoul/projects/flowspy/static'
+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.
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
+ #'django.contrib.flatpages',
'flowspec',
'poller',
-# 'south',
+ 'south',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
'django_extensions',
'djcelery',
'peers',
+ 'registration',
'accounts'
)
NETCONF_DEVICE = ""
NETCONF_USER = ""
NETCONF_PASS = ""
-
ROUTES_FILTER = "<configuration><routing-options><flow/></routing-options></configuration>"
ROUTE_FILTER = "<configuration><routing-options><flow><route><name>%s</name></route></flow></routing-options></configuration>"
COMMIT_CONFIRMED_TIMEOUT = "120"
BROKER_HOST = "localhost"
BROKER_PORT = 11300
POLLS_TUBE = 'polls'
+
BROKER_VHOST = "/"
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")
EXPIRATION_NOTIFY_DAYS = 4
-PREFIX_LENGTH = 32
+PREFIX_LENGTH = 29
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'
+
+# BCC mail addresses
+NOTIFY_ADMIN_MAILS = ["admin@admin.com"]
-CELERYBEAT_SCHEDULE = {
- # Executes every day at 01:35 AM
+UI_USER_THEN_ACTIONS = ['discard', 'rate-limit']
+UI_USER_PROTOCOLS = ['icmp', 'tcp', 'udp']
+
+PROTECTED_SUBNETS = ['10.10.0.0/16']
+
+CELERYBEAT_SCHEDULE = {
"every-day-sync": {
"task": "flowspec.tasks.check_sync",
"schedule": crontab(minute=01, hour=01),
"args": (),
},
+ "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