Skip to content

init.txt configuration

NoteFox edited this page Jun 9, 2020 · 23 revisions

How to use the init.txt

(Info : You will need the config file!!)

The init.txt is quite easy to understand. It's a Configuration File for the Service, which will be read when the service starts.

On the first Line, we add [init], so the Service actually knows it's a init File

Then we can declare the values for the specific Variables variablename = value

the ground rule for the whole System is: "ONE LINE ONE VALUE" ! everything after the value will be ignored

implemented for now (03.06.2020) :

  • logDefaultDir - the Path where the logs are saved (default : log/)

  • mapsDefaultDir - the Path where the maps will be saved (default : maps/)

  • sftpDefaultDir - the Path where the ftp poperties will be saved (default : sftp/)

  • webPort - port where the web Service will be opened (default : 5001)

  • sftpPort - port where the ftp Service will be opened (default : 5002)

  • standardUserName - username for the ftp access (no default)

  • standardUserPassword - password for the ftp access (no default)

  • logTerminalOutput - if the Logger should output to the Standard-Output as well as saving it in Files (default : false)

  • maxLogFileSize - defines the max Log File Size in kb (default : 512)


WARNING : standardUserName and standardUserPassword are necessary for the Service to work properly!

If you want to know more: https://github.com/OpenHistoricalDataMap/DowloadWebService/blob/master/src/java/Server/StaticVariables.java

Clone this wiki locally