-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration Core
You can provide a configuration file application.properties and put it in the
same directory where your scipamato.jar resides.
The properties are of the following form:
specific.property.name=valueAny line starting with the hash (#) is considered a comment. You can find a
full sample application.properties at the end of the page.
- scipamato.brand
-
The brand name of the application. (default: SciPaMaTo)
- scipamato.localization.default
-
The default localization for the user interface (default:
de(German), currently also supporteden(English)) - scipamato.paper.number.minimum-to-be-recycled
-
The lowest number SciPaMaTo will consider for new papers (in case of gaps). I.e. any number below the defined value would not be recycled in case of gaps. Set this in order to either create a gap by using a higher number than the currently highest assigned number. Or to prevent SciPaMaTo from filling gaps in a lower range and only recycle free numbers in the high ranges.
- 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.
- server.port
-
defines the port the application server listens on (default: 8080)
- spring.http.multipart.max-file-size
-
The maximum file size for a single attachment (default: 10MB)
- spring.http.multipart.max-request-size
-
Max request size (for all files combined) (default: 10MB)
- 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.*)
- 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
truein production environments.
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
# Lowest paper number that can be recycled in case of gaps
scipamato.paper.number.minimum-to-be-recycled=30
# Look and Feel: Bootstrap Theme - see http://bootswatch.com/
wicket.external.agilcoders.bootstrap.theme=cerulean
#
# Web Server Settings
#
########################
# Port exposing the application, i.e. 8080 -> http://localhost:8080/
server.port=8080
# Maximum file upload size
spring.http.multipart.max-file-size=10MB
spring.http.multipart.max-request-size=10MB
#
# 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=scipamato
spring.datasource.hikari.password=scipamato
#
# Database Migration settings (FlyWay)
#
flyway.cleanDisabled=true
flyway.user=scipamadmin
flyway.password=scipamadminIf the property file contains passwords, it makes sense to protecte the file from reading for unauthorized users.
SciPaMaTo - the Scientific Paper Management Tool