Skip to content

Configuration Public

Urs Joss edited this page Nov 18, 2017 · 21 revisions

[[configuration Public]] = Configuration of SciPaMaTo-Public Urs Joss <urs.joss@gmx.ch> :toc: :sectnums: :imagesdir: ./pics :icons: font :tip-caption: :bulb: :note-caption: :information_source: :important-caption: :heavy_exclamation_mark: :caution-caption: :fire: :warning-caption: :warning:

You can provide a configuration file application.properties and put it in the same directory where your scipamato-public-web.jar resides.

The properties are of the following form:

specific.property.name=value

Any line starting with the hash (#) is considered a comment. You can find a full sample application.properties at the end of the page.

Application specific settings

scipamato.brand

The brand name of the application. (default: SciPaMaTo)

scipamato.localization.default

The default localization for the user interface (default: de (German), en (English), or fr (French)

wicket.external.agilcoders.bootstrap.theme

The look and feel of the application. SciPaMaTo can use the themes provided by Bootswatch, the default theme is cerulean. Other options, e.g. cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone, simplex, slate, solar, spacelab, superhero, united, yeti.

Web Server Settings

server.port

defines the port the application server listens on (default: 8081)

Actuator Settings

management.context-path

The path the actuator is exposed on (default: /actuator/**)

security.user.name

User name for accessing the actuator (default 'admin')

security.user.password

Password for accessing the actuator (default 'admin')

information.app.name

Application name exposed in the actuator (default: 'SciPaMaTo Public')

information.app.description

Description exposed in the actuator (default: 'Scientific Paper Management Tools - Public')

Logging

logging.file

location of your log file (default: log/scipamato.log)

logging.level.root

root log level, e.g. DEBUG, INFO, WARN (default: INFO)

logging.level.ch.difty

log level for specific package (here e.g. ch.difty.*)

Database Migration

flyway.user

The user name used by Flyway to perform the migrations. Must have the permissions to create, modify, update, drop tables, sequences and alter the data. (default 'scipamadminpub').

flyway.password

Password for above user (default: 'scipamadminpub')

flyway.cleanDisabled

If this setting is set to true, Flyway refuses to clear the database, even if called to do so. Definitely should be set to true in production environments.

Example application properties

The following example provides the default values (except the database profile!). There’s no need to use this specific version. But you can use it as a template to change specific values to configure your preferred choices.

#
# Application specific settings
#
##################################

# Brand name of  the application
scipamato.brand=SciPaMaTo
# Default Localization [en, de]
scipamato.localization.default=de

# Look and Feel: Bootstrap Theme - see http://bootswatch.com/
wicket.external.agilcoders.bootstrap.theme=cerulean


#
# Web Server Settings
#
########################

# Port exposing the application, i.e. 8081 -> http://localhost:8081/
server.port=8081


#
# Actuator settings - see http://www.baeldung.com/spring-boot-actuators
#
##########################################################################

# URL exposing the actuator end points, i.e. http://localhost:{port}/actuator/info
management.context-path=/actuator/**

# Login/Password for access to the actuator endpoints
security.user.name=admin
security.user.password=admin

# actuator information
information.app.name=SciPaMaTo Public
information.app.description=Scientific Paper Management Tools - Public


#
# Logging specification
#
###########################

logging.file=log/scipamato.log
logging.level.root=INFO


#
# Database Configuration
#
#############################

spring.datasource.hikari.jdbc-url=jdbc:postgresql://localhost:5432/scipamato
spring.datasource.hikari.username=scipamatopub
spring.datasource.hikari.password=scipamatopub


#
# Database Migration settings (FlyWay)
#

flyway.user=scipamadminpub
flyway.password=scipamadminpub
flyway.cleanDisabled=true

If the property file contains passwords, it makes sense to protecte the file from reading for unauthorized users.

Clone this wiki locally