04-15-2019 10:40 PM
Im trying to set up a dev, staging, prod environment so I've set up a git repo and committed the alfresco-global.properties file and then deployed the repository to the dev, staging and prod servers.
Is there a way to override this file so that dev, staging and prod can have some similar settings (e.g authentication subsystems) while others are overridden (e.g. database connections)?
Thanks in advance
04-16-2019 01:47 AM
Environment specific configuration should be specified inside below file.
tomcat/shared/classes/alfresco-global.properties.
Above file is loaded last , so it will override all configuration which is specified in above file.
04-16-2019 04:56 PM
Where is the best place for me to add the below settings so that I can override them for site specific settings using tomcat/shared/classes/alfresco-global.properties?
dir.root
alfresco.host
share.host
db.username
db.password
db.password
system.serverMode
system.usages.enabled
alfresco_user_store.adminpassword
solr.host
solr.port.ssl
index.subsystem.name
solr.secureComms
solr.port
solr.base.url
aos.baseUrlOverwrite
mail.host
mail.port
mail.username
mail.password
mail.encoding
mail.from.default
mail.smtp.auth
email.inbound.enabled
email.server.enabled
email.server.port
email.server.domain
imap.server.host
imap.server.imaps.enabled
imap.server.imaps.port
cifs.serverName
04-18-2019 04:42 AM
Hi:
You can override specific environment properties via JAVA_OPTS too (for example in setenv.sh or init scripts), adding those properties as java variables with -D (this is similar what docker compose is using for environment).
Kind regards.
--C.
Explore our Alfresco products with the links below. Use labels to filter content by product module.