Commit e57a3ef7 authored by Celine Noirot's avatar Celine Noirot Committed by Romain Therville

Add config example and remove useless function

parent da53fd08
......@@ -32,8 +32,6 @@ server_socket_port = 8080
server_socket_protocol = https
# date format
date_format = %d/%m/%Y
# data retention time (in years)
retention_time = 2
#optional : key for jflow server ssl configuration
ssl_certificate = certificate.crt
......@@ -87,6 +85,19 @@ work_directory = <path>/work
# accessible by all cluster nodes
tmp_directory = <path>/tmp
# Configure different storage directory
# and associate retention date or duration
#
# eg with a duration
[space_default]
dir_name=default
retention_period=3
#
# eg with a fix date
[space_final]
dir_name=directory
retention_date=12/03/2021
[ui]
# This must be an absolute path of a directory mounted and accessible by the server
user_base_directory = /work/
......
......@@ -203,12 +203,3 @@ class NG6ConfigReader(object):
except :
raise Exception("Failed when parsing the config file get_server_parameters !")
def get_retention_time(self):
"""
return the retention time parameter
@return: retention_time
"""
try:
return self.reader.get('global', 'retention_time')
except :
raise Exception("Failed when parsing the config file get_retention_time!")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment