The jforum-custom.conf file is generated after you have finished JForum web-based installation.
You can find it under <jforum_installed_dir>/WEB-INF/config directory.
The content looks like the following:
#Installation specific configuration options
#Thu Jul 09 02:39:41 CST 2015
announcement=
avatar.maxHeight=130
avatar.maxWidth=130
avatarMaxKbSize=25
captcha.registration=true
container.app=Apache Tomcat
container.version=8
context.path=/jforum
dao.driver=net.jforum.dao.mysql.MysqlDataAccessDriver
database.connection.dbname=jforum
database.connection.driver=com.mysql.jdbc.Driver
database.connection.host=localhost
database.connection.implementation=net.jforum.PooledConnection
database.connection.password=root
database.connection.pool.max=50
database.connection.pool.min=5
database.connection.pool.timeout=5000
database.connection.port=3306
database.connection.string=jdbc\:mysql\://${database.connection.host}\:${database.connection.port}/${database.connection.dbname}?user\=${database.connection.username}&password\=${database.connection.password}&autoReconnect\=true${mysql.unicode}${mysql.encoding}&useNewIO\=false&zeroDateTimeBehavior\=convertToNull&useServerPrepStmts\=false&dumpQueriesOnException\=true&jdbcCompliantTruncation\=false
database.connection.username=root
database.driver.name=mysql
database.support.autokeys=true
database.support.subqueries=true
dateTime.format=yyyy/MM/dd HH\:mm\:ss
dateTime.local=true
dbencoding=utf-8
encoding=UTF-8
forum.link=http\://localhost\:8080/jforum/
forum.name=My Forum
forum.page.metatag.description=here goes the board description
forum.page.metatag.keywords=some keywords for your board
forum.page.title=My Forum - your board description
homepage.link=http\://localhost\:8080
hot.topic.begin=20
html.tags.welcome=a, img, font, b, i, u, li, ul, br, hr, p
i18n.board.default=zh_TW
installed=true
mail.activationKey.messageFile=mail/zh_TW/activateAccount.txt
mail.activationKey.subject=[My Forum] Activate forum account
mail.charset=UTF-8
mail.lostPassword.messageFile=mail/zh_TW/lostPassword.txt
mail.lostPassword.subject=[My Forum] Password recovery
mail.messageFormat=html
mail.newAnswer.messageFile=mail/zh_TW/mailNewReply.txt
mail.newAnswer.subject=[My Forum] Message posted\: {0}
mail.newPm.messageFile=mail/zh_TW/newPrivateMessage.txt
mail.newPm.subject=[My Forum] Private Message
mail.notify.answers=false
mail.sender=email@sender.address
mail.smtp.auth=true
mail.smtp.host=localhost
mail.smtp.password=smtppassword
mail.smtp.port=25
mail.smtp.ssl=false
mail.smtp.username=your@smtp.username
mail.user.email.auth=false
mysql.encoding=
mysql.unicode=
org.quartz.context.mailintegration.cron.expression=0 0/30 * ? * *
org.quartz.context.summary.cron.expression=0 30 12 ? * MON
org.quartz.scheduler.instanceId=AUTO
org.quartz.scheduler.instanceName=JForumScheduler
org.quartz.scheduler.threadName=JForumSchedulerThread
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount=2
org.quartz.threadPool.threadPriority=3
posts.cache.enabled=true
posts.cache.size=100
posts.edit.after.reply=true
posts.new.delay=15000
postsPerPage=15
registration.enabled=true
rss.enabled=true
server.info=Apache Tomcat/8.0.23
servlet.version=3.1
show.ip=true
show.online.status=true
social.enabled=true
topic.hottest=50
topic.recent=50
topicsPerPage=15
user.hash.sequence=82b17028644414f05588f471455ad51b
usersPerPage=30
You can also re-package jforum.war with your jforum-custom.conf containing the correct database connection and other system settings.