Configuration
For different setups, there can be different configuration files be involved or not. The configurations coming from the seb-server-setup repository are listed and documented here by the service they belong to.
SEB Server Configuration
The most important settings for the seb-webservice services configurations are located within the .env file and within the docker-compose.yml file within the respective service configuration.
The .env file contains all environment variables that must be set for a dedicated setup. Within the docker-compose.yml file the most interesting settings are defined with its default values. If a specific database connection must be set, this can be done within the docker-compose.yml file. At last but not least, more specific settings are located in the service specific config directory within the also service dedicated configuration files. For the Java/Spring services these are the application-prod.properties files.
SEB Server Webservice Settings (seb-webservice and sps-webservice)
Note
The most settings described below can either be defined in the docker-compose.yml file directly with underline notation or within the configuration file: application-prod.properties in the spring subdirectory. If you define it in docker-compose.yml make sure you apply it to the belonging service as well as always us the underline notation (change “.” with “_”).
- JAVA_HEAP_MIN
The initial minimum heap memory space used by the JVM on init
Note that this is a JVM env variable and can only be set in the docker-compose.yml file
Default depends on setup. Minimum should be 1G and 2G for production
seb-webservice and sps-webservice
- JAVA_HEAP_MAX
The maximal heap memory space the JVM process can claim
Note that this is a JVM env variable and can only be set in the docker-compose.yml file
Default depends on the setup. 4G - 8G depending on your environment should be enough. Note that if you run all services on one host, the sum of all max memory consumption should be lower as the available memory on the host.
seb-webservice and sps-webservice
- logging.level.ROOT
The initial log-level for all loggers
See Spring Logging
Default is WARN, seb-webservice and sps-webservice
- logging.level.ch
The initial log-level for a given package - here for all SEB Server packages
See Spring Logging
Default is INFO, seb-webservice and sps-webservice
- logging.file
if defined the SEB Server logs to the specified file
See Spring Logging
Default is /sebserver/log/sebserver.log. Note this path is also used in docker-compose to bind the log directory to a named volume.
- sebserver.webservice.forceMaster
- sps.webservice.distributed.forceMaster
Flag indicating a primary master service instance that claims to be master when active.
This can be used in fail-over setups with two SEB Server nodes running, one as the master and another as hot-backup. The master should then have this flag set to true to become master again after recovery.
Default is false
- sebserver.init.adminaccount.gen-on-init
Indicates whether initial admin account creation is on/off
If an initial admin account should be created on first startup of the SEB Server this must be set
Default is true, only seb-webservice
- sebserver.init.adminaccount.username
Defines the username of the initial admin account.
If initial admin account creation is switched on, this is mandatory and defines the username that is created for the initial account.
Default is “SEB Server”, only seb-webservice
- sebserver.init.organisation.name
Defines the institution name for of the institution to create for the initial admin account
If an initial admin account must be created, we need also an institution to assign this initial account to. This defines the name of that initial institution that is created together with the initial admin account.
Default is “sebserver-admin”, only seb-webservice
- datastore.mariadb.server.address
Defines the address of the MariaDB data-store server
Usually the data-store is defined in a separated docker container/service and connected within a docker-network. This is usually a docker service name. If the data-store lives on a separated server, this is the server URL
seb-webservice and sps-webservice
- datastore.mariadb.server.port
Defines the port of the MariaDB data-store server
Same as datastore.mariadb.server.address
seb-webservice and sps-webservice
- spring.datasource.username
The username for the JDBC account to use to connect to the MariaDB server
In a bundled environment with docker, root is default and must not be changed
seb-webservice and sps-webservice
- spring.datasource.hikari.initializationFailTimeout
- spring.datasource.hikari.connectionTimeout
- spring.datasource.hikari.idleTimeout
- spring.datasource.hikari.maxLifetime
Hikari data-base connection pool times and timeouts
seb-webservice and sps-webservice
- spring.datasource.url
the JDBC connection URL
This mostly is composed from other settings and must not be changed
seb-webservice and sps-webservice
- spring.datasource.hikari.initializationFailTimeout
- spring.datasource.hikari.connectionTimeout
- spring.datasource.hikari.idleTimeout
- spring.datasource.hikari.maxLifetime
Hikari data-base connection pool times and timeouts
seb-webservice and sps-webservice
- spring.datasource.password
The password for the database connection
This usually is automatically set by the password given from the initial setup process and must not be changed. If there is the need to change this for whatever reason, be aware that it is not secure to give a password in plain test within the configuration and everyone that is able to read the configuration is able to get the password.
seb-webservice and sps-webservice
- sebserver.webservice.api.admin.clientSecret
- sps.api.admin.gui.clientSecret
The secret for the GUI service basic authentication to connect to the webservice; OAuth2
This usually is automatically set by the password given from the initial setup process and must not be changed. If there is the need to change this for whatever reason, be aware that it is not secure to give a password in plain test within the configuration and everyone that is able to read the configuration is able to get the password.
seb-webservice and sps-webservice
- sebserver.webservice.internalSecret
- sps.webservice.internalSecret
The secret that is used for SEB Server internal encryption.
This usually is automatically set by the password given from the initial setup process and must not be changed. If there is the need to change this for whatever reason, be aware that it is not secure to give a password in plain test within the configuration and everyone that is able to read the configuration is able to get the password.
seb-webservice and sps-webservice
- sebserver.webservice.distributed
- sps.webservice.distributed
Indicates whether the web-service runs within a distributed environment or as single-bundled server
On a distributed environment (multiple running instances with load balancing) this must set to true to ensure internal cache strategies are working correctly on distributed setup.
- sebserver.webservice.http.external.scheme
- sebserver.webservice.http.external.servername
- sebserver.webservice.http.external.port
- sps.webservice.http.external.scheme
- sps.webservice.http.external.servername
- sps.webservice.http.external.port=
This properties defines the URL on that the SEB Server can be accessed from the public Internet.
Set the scheme (http/https) and the server name to the external URL settings of the SEB Server. If the web-service runs on default HTTP/HTTPS ports, the port must not be specified.
- sebserver.webservice.api.admin.endpoint
- sebserver.webservice.api.admin.accessTokenValiditySeconds
- sebserver.webservice.api.admin.refreshTokenValiditySeconds
- sps.api.admin.endpoint
- sps.api.admin.accessTokenValiditySeconds
- sps.api.admin.refreshTokenValiditySeconds
Defines properties for the admin API access.
The admin API access is needed to access the admin API of the web-service. The admin API defines a REST API for all administrative purposes.
- sebserver.webservice.api.exam.endpoint
- sebserver.webservice.api.exam.accessTokenValiditySeconds
- sebserver.webservice.api.exam.endpoint.v1
- sebserver.webservice.api.exam.endpoint.discovery
- sps.api.session.endpoint
- sps.api.session.endpoint.v1
- sps.api.session.accessTokenValiditySeconds
Defines properties for the exam API access.
The exam API access is needed to access the exam API of the web-service. The exam API defines a REST API for SEB clients to connect.
- sebserver.webservice.api.exam.enable-indicator-cache
Indicates if internal indicator value cache should be used where possible
This is usually done on a bundled single instance setup to gain performance. If we have a distributed setup with many SEB Server instances this should be set to false.
Default is true, only seb-webservice
- sebserver.webservice.api.admin.request.limit
A general request limit used for request limits on certain exposed API endpoints
This uses a bucked-algorithm where each request attempt removes a item from the bucket and if the bucket is empty no request is permittet Involved endpoints: user-account-registration
Default is 10, only seb-webservice
- sebserver.webservice.api.admin.request.limit.refill
The refill items count for the above request limit
Default is 2, only seb-webservice
- sebserver.webservice.api.admin.request.limit.interval.min
The refill interval in minutes for the above request limit
Default is 10, only seb-webservice
- sebserver.webservice.api.admin.create.limit
A general object create limit used to prevent exessive object creation (persistent storage)
This uses a bucked-algorithm where each creation attempt removes a item from the bucket and if the bucket is empty no object creation is permittet Involved endpoints: user-account-registration
Default is 10, only seb-webservice
- sebserver.webservice.api.admin.create.limit.refill
The refill items count for the above object creation limit
Default is 10, only seb-webservice
- sebserver.webservice.api.admin.create.limit.interval.min=3600
The refill interval in minutes for the above object creation limit
Default is 3600, only seb-webservice
- sps.data.store.adapter
Defines the overall image store strategy and if images are stored in DB or S3
Default is FULL_RDBMS that stores all in DB. (S3_RDBMS stores images in bound S3 service)
only sps-webservice
- sps.s3.endpointUrl
Defines the S3 storage base URL for access
only sps-webservice
- sps.s3.accessKey
Defines the S3 access key for S3 service authentication
only sps-webservice
- sps.s3.secretKey
Defines the S3 secret key for S3 service authentication
only sps-webservice
- sps.s3.bucketName
Defines the S3 bucket to use for images store
only sps-webservice
- sps.s3.defaultBucketName
Defines the S3 default bucket name. If the bucket name defined in sps.s3.bucketName does not exists, and this is set, tries to create one new
only sps-webservice
- sps.s3.store.batch
Defines the S3 to use batch stores. This is only possible if the S3 service that is used support batch operations
only sps-webservice
- sps.s3.tls.cert
Defines the S3 access certificate to use to access S3 if the service need and supports one
only sps-webservice
SEB Server GUI Service Settings
- SEB_SERVER_URL
The url used to connect to seb-webservice. The GUI service uses this to connect to the seb-webservice API
This is mostly configured to connect internally over the Docker network, it is more secure and faster as well
Default is “http://seb-webservice:8080” to internally connect to the docker service via docker networking
- SEB_SERVER_USERNAME
This is the client name used by the seb-guiservice to authenticate to seb-webservice
Default is guiClient
- SEB_SERVER_PASSWORD
This is the password used by the seb-guiservice to authenticate to seb-webservice
Note this is usually set be environment variable from the init and you do not have to set it manually
Default comes form environment variable SEBSERVER_PWD
- PROCTOR_SERVER_URL
The url used to connect to sps-webservice. The GUI service uses this to connect to the sps-webservice API
This is mostly configured to connect internally over the Docker network, it is more secure and faster as well
Default is “http://sps-webservice:8090” to internally connect to the docker service via docker networking
- PROCTOR_SERVER_USERNAME=
This is the client name used by the sps-guiservice to authenticate to seb-webservice
Default is spsGuiClient
- PROCTOR_SERVER_PASSWORD
This is the password used by the seb-guiservice to authenticate to sps-webservice
Note this is usually set be environment variable from the init and you do not have to set it manually
Default comes form environment variable SEBSERVER_PWD
Reverse Proxy Configuration
Docker internal SEB Server setup uses a nginx reverse proxy for communication with the host and the Internet. The configuration is placed in the app.conf file and will be loaded by nginx on startup of the container. The configuration usually has all the pre-settings needed for working correctly within the specific setup context. If there is the need to have a different configuration for the nginx reverse proxy we refer to the nginx configuration documentation
MariaDB Configuration
The MariaDB configuration can be found in the config/mariadb/config.cnf file and the directory config/mariadb is mapped to the directory /etc/mysql/conf.d of the seb-server-mariadb docker container to be used to override the default MariaDB configuration. This file can be used to configure the MariaDB that is bundled with SEB Server in the docker-compose setup like a normal MariaDB configuration file. See MariaDB Configuration for more information on how to configure MariaDB with the options file.
JMX Configuration
If you want to have JMX enabled for production environment there is a prepared default configuration in config/jmx/. Please refer to the JMX documentation as well the this JMX security guide You need also the set the JMX_PORT as environment veriable in the docker-compose file to the port you want to use as well as uncomment the port mapping the seb-server service of the docker-compose file. And make sure also the right port is set in the jmxremote.properties file.