Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schmitz
FoD
Commits
05cbe3ba
Commit
05cbe3ba
authored
7 years ago
by
David Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
update of .gitignore and removal of settings_local.py
parent
459bc23c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
flowspy/.gitignore
+3
-0
3 additions, 0 deletions
flowspy/.gitignore
flowspy/settings_local.py
+0
-164
0 additions, 164 deletions
flowspy/settings_local.py
with
3 additions
and
164 deletions
flowspy/.gitignore
0 → 100644
+
3
−
0
View file @
05cbe3ba
settings_local.py
This diff is collapsed.
Click to expand it.
flowspy/settings_local.py
deleted
100644 → 0
+
0
−
164
View file @
459bc23c
# -*- coding: utf-8 -*-
##############################################################################
##############################################################################
import
sys
print
"
loaded settings_local.py
"
import
socket
try
:
FODHOSTNAME
=
socket
.
gethostname
()
except
:
FODHOSTNAME
=
'
localhost
'
MYSETTING1
=
"
testsettings1
"
#sys.exit
##############################################################################
##############################################################################
DEBUG
=
True
TEMPLATE_DEBUG
=
DEBUG
ADMINS
=
(
(
'
AdminName
'
,
'
evangelos.spatharas@geant.org
'
),
)
MANAGERS
=
ADMINS
ALLOWED_HOSTS
=
[
'
*
'
]
SITE_ID
=
1
SECRET_KEY
=
'
@@5234#$%345345^@#$%*()123^@12!&!()$JMNDF#$@(@#8FRNJWX_
'
DATABASES
=
{
'
default
'
:
{
'
ENGINE
'
:
'
django.db.backends.mysql
'
,
# Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'
NAME
'
:
'
fod
'
,
# Or path to database file if using sqlite3.
'
USER
'
:
'
fod
'
,
# Not used with sqlite3.
'
PASSWORD
'
:
'
asdfghjkl
'
,
# 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.
}
}
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# In a Windows environment this must be set to your system time zone.
TIME_ZONE
=
'
Europe/Athens
'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE
=
'
en
'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
_
=
lambda
s
:
s
LANGUAGES
=
(
(
'
el
'
,
_
(
'
Greek
'
)),
(
'
en
'
,
_
(
'
English
'
)),
)
STATIC_ROOT
=
'
/srv/flowspy/static
'
ROOT_URLCONF
=
'
flowspy.urls
'
WSGI_APPLICATION
=
'
flowspy.wsgi.application
'
# Netconf Device credentials
# The following variables should contain the address of the device with
# flowspec, the username and password of the appliers account and the netconf
# port.
NETCONF_DEVICE
=
"
172.16.113.10
"
NETCONF_USER
=
"
fod
"
NETCONF_PASS
=
"
1v5CkNzfdEUG0mLTfbLABRfW5yiJTRTD
"
NETCONF_PORT
=
22
# Notifications
SERVER_EMAIL
=
"
Geant FoD Service (TEST) <test@fod.geant.net>
"
EMAIL_SUBJECT_PREFIX
=
"
[FoD]
"
EXPIRATION_NOTIFY_DAYS
=
4
PREFIX_LENGTH
=
29
POLL_SESSION_UPDATE
=
60.0
#Shibboleth attribute map
SHIB_AUTH_ENTITLEMENT
=
''
SHIB_ADMIN_DOMAIN
=
'
grnet.gr
'
SHIB_LOGOUT_URL
=
'
https://
'
+
FODHOSTNAME
+
'
/Shibboleth.sso/Logout
'
# BCC mail addresses
NOTIFY_ADMIN_MAILS
=
[
"
evangelos.spatharas@geant.org
"
]
# Then actions in the ui (dropdown)
UI_USER_THEN_ACTIONS
=
[
'
discard
'
,
'
rate-limit
'
]
UI_USER_PROTOCOLS
=
[
'
icmp
'
,
'
tcp
'
,
'
udp
'
]
ACCOUNT_ACTIVATION_DAYS
=
7
# Define subnets that should not have any rules applied whatsoever
#PROTECTED_SUBNETS = ['10.10.0.0/16']
PROTECTED_SUBNETS
=
[]
#MAX_RULE_EXPIRE_DAYS = 10
MAX_RULE_EXPIRE_DAYS
=
30
# Add two whois servers in order to be able to get all the subnets for an AS.
PRIMARY_WHOIS
=
'
whois.ripe.net
'
ALTERNATE_WHOIS
=
'
whois.ripe.net
'
# results in exceptions:
#ALTERNATE_WHOIS = 'whois.example.net'
LOG_FILE_LOCATION
=
"
/var/log/fod
"
BRANDING
=
{
'
name
'
:
'
GÉANT OC
'
,
'
url
'
:
'
https://
'
+
FODHOSTNAME
,
'
footer_iframe
'
:
'
https://
'
+
FODHOSTNAME
+
'
/iframe
'
,
'
facebook
'
:
'
//facebook.com/
'
,
'
twitter
'
:
'
//twitter.com/
'
,
'
phone
'
:
'
+44 1223 733033
'
,
'
email
'
:
'
ncc@noc.geant.net
'
,
'
logo
'
:
'
fodlogo2.png
'
,
'
favicon
'
:
'
favicon.ico
'
,
}
# Limit of ports in 'ports' / 'SrcPorts' / 'DstPorts' of a rule:
#PORTRANGE_LIMIT = 100
PORTRANGE_LIMIT
=
65535
SNMP_COMMUNITY
=
"
0pBiFbD
"
SNMP_IP
=
[
#"172.16.113.10",
#"172.16.113.12",
#"172.16.113.14",
#"172.16.113.16",
"
62.40.96.11
"
]
# currently unused
SNMP_CNTBYTES
=
"
1.3.6.1.4.1.2636.3.5.2.1.5
"
SNMP_CNTPACKETS
=
"
1.3.6.1.4.1.2636.3.5.2.1.4
"
# get only statistics of specified tables
SNMP_RULESFILTER
=
[
"
__flowspec_default_inet__
"
,
"
__flowspec_IAS_inet__
"
]
# load new data into cache if it is older that a specified number of seconds
SNMP_POLL_INTERVAL
=
8
#seconds
# cache file for data
SNMP_TEMP_FILE
=
"
/tmp/snmp_temp_data
"
SNMP_POLL_LOCK
=
"
/var/run/fod/snmppoll.lock
"
# Number of historical values to store for a route.
# Polling interval must be set for "snmp-stats-poll" celery task in CELERYBEAT_SCHEDULE.
# By default, it is 5 min interval, so SNMP_MAX_SAMPLECOUNT=12 means we have about
# one hour history.
#SNMP_MAX_SAMPLECOUNT = 12
SNMP_MAX_SAMPLECOUNT
=
2016
# Age of inactive routes that can be already removed (in seconds)
#SNMP_REMOVE_RULES_AFTER = 3600
SNMP_REMOVE_RULES_AFTER
=
604800
##############################################################################
##############################################################################
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment