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
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.
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
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.