Configuration properties#

Configuration properties read and written by Portofino and third-party modules reside in /WEB-INF/portofino.properties. If present, a /WEB-INF/portofino-local.properties is used instead as an override file - properties defined there will win over those defined in portofino.properties. So, for optimal versioning, you should store properties that do not change depending on the environment in portofino.properties, and track that file with a version control system; while properties that vary across environments (development, QA, production etc.) should be stored in portofino-local.properties and either not versioned or versioned in a different repository or different branch or similar, depending on your setup and requirements.

portofino{-local}.properties can also contain database connection information, which normally is stored in the portofino-model.xml file. If you want to deploy the same Portofino installation in multiple environments with different database connections, you can remove connection information from portofino-model.xml and store it as properties (see below).

Available Portofino Properties#

  • Database connection
    • portofino.database.<database name>.url
    • portofino.database.<database name>.username
    • portofino.database.<database name>.password
  • Misc
    • blobs.dir.path
    • app.name
    • landing.page
  • Server config
    • portofino.hostnames
    • url.encoding //default UTF-8
  • Login
    • login.page
  • Groovy
    • groovy.preloadPages
    • groovy.preloadClasses
  • Group names
    • group.all
    • group.anonymous
    • group.registered
    • group.administrators
  • Mail
    • mail.from //The mail address used as the from: field in email messages sent by the application (e.g. password change)
    • mail.enabled
    • mail.smtp.host
    • mail.smtp.port
    • mail.smtp.ssl.enabled
    • mail.smtp.tls.enabled
    • mail.smtp.login
    • mail.smtp.password
    • mail.keep.sent
    • mail.queue.location
    • mail.sender.poll.interval
    • mail.sender.server_url
    • mail.quartz.enabled

Other notable properties#

  • hibernate.properties is in the usual place (root of the classpath, i.e. WEB-INF/classes). Refer to the Hibernate documentation. In particular, you might want to set hibernate.show_sql to false in production.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-5) was last changed on 18-Jun-2015 11:43 by alessio.stalla@manydesigns.com