# JForum default configuration options # # If you are a developer and want to specify options specific to your # machine, like database driver and password, that should not be # committed to the repository, please create a file named # jforum-custom.conf under WEB-INF/config and put the custom # keys and values there. # # Version: $Id$ ##################### # GENERAL SETTINGS ##################### forum.link = http://localhost:8080/jforum homepage.link = http://localhost:8080 forum.name = My Forum forum.page.title = ${forum.name} - your board description forum.page.metatag.keywords = some keywords for your board forum.page.metatag.description = here goes the board description # If "true", all redirect URLs will include the value of "redirect.base.url" as prefix redirect.absolute.paths = false # This property is only used when redirect.absolute.paths = true. You can use # it to force a redirect prefix other than forum.link. It is specially useful # when using proxied.context.path redirect.base.url = ${forum.link} # In case you're using mod_proxy or something similar, you can set this # property to force JForum to use a specific context path. # # Leave it blank if you don't need to use it. # # Note that if you set this property, you will also want to properly # set "forum.link" to use the same context path. proxied.context.path = # Default language to use. Can be any value # existent at config/languages/locales.properties i18n.board.default = en_US # Security Hash. You should change this value just before the # first run of your forum. The value can be anything and *should* # very a large and complex sequence. This value will be used to # increase security user.hash.sequence = 04904SDFfhfh449911-**%$nvMDFHDhskda6546546as4df4ads6f54ads654 # X-Frame-Options: https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options # Other possible values are DENY and ALLOW-FROM (support for which is patchy) # If left blank, the header will not be set; this is not recommended. http.x-frame-options=SAMEORIGIN # Page encoding encoding = UTF-8 # Set it to "true" to require that Moderators log their actions moderation.logging.enabled = true # show online status show.online.status = true # show IP address show.ip = true # show avatars show.avatar = true ##################### # DATABASE SETTINGS ##################### # Database type to use database.driver.name = mysql # Can be net.jforum.SimpleConnection, net.jforum.PooledConnection or net.jforum.DataSourceConnection database.connection.implementation = net.jforum.PooledConnection # Enable / Disable transactions database.use.transactions = true # DataSource name, in case of using net.jforum.DataSourceConnection database.datasource.name = java:/MySqlDS # Time in seconds to healthcheck all database connections database.ping.delay = 3600 # Extra parameters to pass to C3P0 (only when using PooledConnection) # Form is key=value;key2=value2;keyN=valueN c3p0.extra.params = checkoutTimeout=120000;debugUnreturnedConnectionStackTraces=false;unreturnedConnectionTimeout=180 # ###### # Cache # ###### topic.cache.enabled = true posts.cache.enabled = true security.cache.enabled = true topic.cache.size = 45 posts.cache.size = 100 topicsPerPage = 15 postsPerPage = 15 usersPerPage = 30 hot.topic.begin = 20 topic.recent = 50 topic.hottest = 50 top.downloads = 50 ################################ # GENERAL BOARD CONFIGURATIONS ################################ # Delay (in ms) between each post from the user # Set it to 0 (zero) to disable the config posts.new.delay = 15000 # Whether posts can be edited after a response has been posted. posts.edit.after.reply = true # Google Analytics ID, looks like UA-XXXXXXX-X; leave blank if you're not using GA google.analytics.tracker = # If set to "true", only moderators and admins are # allowed to see the error stack trace when an exception # occurs in the board. stacktrace.moderators.only = true # Enable or disable registration of new users. registration.enabled = true dateTime.format = dd/MM/yyyy HH\:mm\:ss # RSS date and time format. # If you want to include the timezone, use # # EEE, d MMM yyyy HH:mm:ss z # # However, currently, JForum does not include timezone # when writing messages data to the database rss.datetime.format = EEE, d MMM yyyy HH:mm:ss # RSS rss.enabled = true # Social sharing: whether to show the ShareThis button social.enabled = false # whether to display times in the local timezone, of the server timezone dateTime.local = false # Proxy handling when logging in # If set to true, the header X-Forwarded-Host will be ignored # when building the redirect URL after a successful login. # Usually useful when running behind a reverse proxy login.ignore.xforwardedhost = false # If true, JForum will not try to redirect the browser # session to the HTTP Referer (if any) after successfully # logging in a user login.ignore.referer = false # board-wide announcement to show on all pages announcement= # ######## # Captcha # ######## captcha.registration = false captcha.posts = false captcha.ignore.case = true captcha.width = 250 captcha.height = 75 captcha.min.words = 4 captcha.max.words = 6 captcha.min.font.size = 25 captcha.max.font.size = 35 # Allowed HTML tags to be used when posting a message html.tags.welcome = a, img, font, b, i, u, li, ul, br, hr, p html.attributes.welcome = href, target, rel, src, width, height, size, face, color # Allow or not relative links in the messages. If set to true, # links starting with / are allowed, otherwise it should start # with the values defined in the key html.links.allow.protocols html.links.allow.relative = false # Protocols allowed in the links posted in the messages. Only used # if html.links.allow.relative is set to false. Any value different # of those declared will result in an empty link. html.links.allow.protocols = http://, https://, mailto:, ftp:// # Max length for the username username.max.length = 50 # Directory to store the avatar files avatar.image.dir = images/avatar avatar.store.dir = ${application.path}/${avatar.image.dir}/ avatar.maxHeight = 130 avatar.maxWidth = 130 avatarMaxKbSize = 25 # Allow or not the user to link to an external avatar # To disable, set to "false" avatar.allow.external.url = true # ######################### # Terms Agreement / COPPA # ######################### agreement.show = true agreement.files.path = /templates/agreement agreement.default.file = terms_en_US.txt # Board statistics statistics.ringSize = 100 statistics.active = true # ############# # ATTACHMENTS # ############# # Allow or not the anonymous user to download an attachment # To disable, set to "false" attachments.anonymous = true # Maximum of attachments per post attachments.max.post = 3 # Create thumbnails for attached images attachments.images.createthumb = true # If the image size is less than the specified # size, then thumbs are not created attachments.images.thumb.maxsize.w = 400 attachments.images.thumb.maxsize.h = 400 # If "true", tell the application to display the # regular download box for thumbnails as well. # If "false", then only the thumb will be shown # within the message, and then the user should # click on the image to download the full version attachments.images.thumb.box.show = true # Icon to identify topics / posts with attachments attachments.icon = images/icon_clip.gif # Directory to store the files attachments.upload.dir = upload attachments.store.dir = ${application.path}/${attachments.upload.dir} ################## # MAIL SETTINGS ################## # If "true", a mail will be sent to users when a topic is # answered. To disable, set it to "false" mail.notify.answers = false # SMTP config mail.sender = email@sender.address mail.smtp.auth = true mail.smtp.host = localhost # Non-SSL default port is 25. If SSL, the default por is 465. mail.smtp.port = 25 mail.smtp.username = your@smtp.username mail.smtp.password = smtppassword # the period in milliseconds JForum waits before sending next mail to SMTP server. # Some SMTP server will response 421 if you send a lot of mails in a very short time. # set it to 0 (zero) to disable it completely mail.smtp.delay = 2000 # SSL support for SMTP. Set it to "true" if your # host requires that (GMail does). Don't forget # to change the mail.smtp.port too mail.smtp.ssl = false # If true, allow users to interact to the forum using any # email client, by just sending a message to a specific address mail.pop3.integration.enabled = false # If "false", deletes all messages retrieved from a POP3 # connection. If "true", keeps them in the server mail.pop3.debug.keep.messages = true # If set to true, the POP3 TOP command will not be used to fetch message headers. # This is useful for POP3 servers that don't properly implement the TOP command, # or that provide incorrect information in the TOP command results. mail.pop3.disabletop = true # If the mail.smtp.host cannot be resolved, JavaMail sends a HELO # without a hostname - which is a violation of the SMTP protocol # You can set this property to force the hostname mail.smtp.localhost = # If "true", requires all new users to validate their email # addresses in order to be accepted in the system mail.user.email.auth = false # Can be "text" or "html" mail.messageFormat = html mail.charset = UTF-8 mail.template.encoding = UTF-8 mail.lostPassword.messageFile = mail/${i18n.board.default}/lostPassword.txt mail.lostPassword.subject = [${forum.name}] Password recovery mail.newAnswer.messageFile = mail/${i18n.board.default}/mailNewReply.txt mail.newAnswer.subject = [${forum.name}] Message posted: {0} mail.newPm.subject = [${forum.name}] Private Message mail.newPm.messageFile = mail/${i18n.board.default}/newPrivateMessage.txt mail.newTopic.messageFile = mail/${i18n.board.default}/mailNewTopic.txt mail.newTopic.subject = [${forum.name}] New Topic: {0} mail.activationKey.subject = [${forum.name}] Activate forum account mail.activationKey.messageFile = mail/${i18n.board.default}/activateAccount.txt mail.summary.weekly.messageFile = mail/${i18n.board.default}/summaryMessage.txt mail.summary.weekly.subject = [${forum.name}] Weekly Summary # ############## # Helper Stuff # ############## extension.field = extension # ################## # Banning of users # ################## # Set it to "true" to send "403 Forbidden" header instead of # displaying a nice error message to the user, in case of banning banlist.send.403forbidden = false # ######## # SEARCH # ######## search.indexing.enabled = true search.indexer.default = net.jforum.search.LuceneManager search.indexer.implementation = ${search.indexer.default} #lucene.analyzer.default = org.apache.lucene.analysis.standard.StandardAnalyzer lucene.analyzer.default = net.jforum.search.PorterStandardAnalyzer lucene.analyzer.chinese = org.apache.lucene.analysis.cjk.CJKAnalyzer lucene.analyzer = ${lucene.analyzer.default} # Full path to where the index should be written. It must be writable by the # user who's running the web server lucene.index.write.path = ${resource.dir}/jforumLuceneIndex # Used for re-indexation. It is the number of documents # to keep in memory before flushing them to the disk # Please keep in mind that a higher number means a higher memory usage lucene.indexer.ram.numdocs = 10000 # Number of posts to retrieve on each read from the database # Please keep in mind that a higher number means a higher memory usage lucene.indexer.db.fetch.count = 50 # whether or not to index (and thus find during a search) attachments lucene.index.attachments = true # Max number of posts in the search result # Please keep in mind that a higher number means a higher memory usage search.result.limit = 50000 # ####### # KARMA # ####### karma.show = true karma.min.points = 1 karma.max.points = 5 ############################# # SSO / User authentication ############################# # Authentication type: use one of the following options # # sso: SSO based authentication. The called class will be the one # specified by the key "sso.implementation", which must be an implementation # of net.jforum.sso.SSO # # default: Non-SSO authentication, which relies on the key # "login.authenticator" to validate users. For more information, please see # net.jforum.sso.LoginAuthenticator and the default implementation. authentication.type = default # The above key will be used when "authentication.type" is set to "default" # Can be any implementation of net.jforum.sso.LoginAuthenticator # # For LDAP authentication, set the value to net.jforum.sso.LDAPAuthenticator. Also, # see the LDAP section below login.authenticator = net.jforum.sso.DefaultLoginAuthenticator # When using authentication.type = default, you may choose to disable # the automatic login feature, which will prevents users to get # automatic logged in when they come back to the forum auto.login.enabled = true # The above key will be be used then "authentication.type" is set to "sso" # The default implementation (used here) only checks if request.getRemoteUser() # is not null. This may be enough for many situations. sso.implementation = net.jforum.sso.RemoteUserSSO # Special attributes used when creating a new user # Only if auhentication.type = sso # The attribute name to search in the session for the password. sso.password.attribute = password # Same as above sso.email.attribute = email # The default email to use if sso.email.attribute is empty sso.default.email = sso@user # The default password to use if sso.password.attribute is empty sso.default.password = sso # Optional redirect for SSO # # If a value is set, the user will be redirected to the defined # URL, using the following logic: # # ${sso.redirect}?returnUrl=${forum.link} + # # The value MUST start with the protocol (http:// or https://) # sso.redirect = # ####### # LDAP # ####### # Security protocol to use, e.g: "ssl" # Leave it empty (default) to let the provider figure it out ldap.security.protocol = # Security authentication to use. Possible values: "none", "simple", "strong", # "EXTERNAL" (SASL). Leave empty (default) to let the provider figure it out ldap.authentication = # Class that provides a LDAP factory ldap.factory = com.sun.jndi.ldap.LdapCtxFactory # The prefix your LDAP server requires. e.g 'uid=' # The username supplied gets inserted just after the prefix, # e.g: 'uid=username' so adjust the prefix properly ldap.login.prefix = uid= # The suffix your LDAP server requires. # e.g 'ou=Users,dc=department,dc=company,dc=com' ldap.login.suffix = ou=Users,dc=department,dc=company,dc=com # The url of your LDAP server. # Notice that if your LDAP server uses SSL you will need to configure your # server certificate so that Java Secure Sockets Extension (JSSE) will accept it. # Read http://docs.oracle.com/javase/jndi/tutorial/ldap/security/ssl.html ldap.server.url = ldap://localhost # Field that holds the user's email ldap.field.email = mail # ActiveDirectory # To configure LDAPAuthenticator integrating with Microsoft Active Directory. The following two keys should be necessary. # They are similar to ldap.login.prefix and ldap.login.suffix , but it's used when looking up user infomation # rather than authentication. It's used when the login Distinguished Name (DN) is formatted differently from the lookup # DN on some LDAP servers, for example, Microsoft Active Directory. If it's the case, you should add these keys in additional # to ldap.login.prefix and ldap.login.suffix . # # The following example is for configuring on Microsoft Active Directory: # =========================== # ldap.login.prefix=CN= # ldap.login.suffix=CN=Users,DC=jform,DC=net # ldap.lookup.suffix=CN=Users # =========================== ldap.lookup.prefix = ldap.lookup.suffix = ############################### # INTERNAL CONFIGURATION STUFF ############################### i18n.internal = en_US database.driver.config = ${config.dir}/database/${database.driver.name}/${database.driver.name}.properties sql.queries.driver = ${config.dir}/database/${database.driver.name}/${database.driver.name}.sql sql.queries.generic = ${config.dir}/database/generic/generic_queries.sql database.support.subqueries = false # ${application.path}, ${installation}, and ${servlet.name} are set by the web application resource.dir = ${application.path}/WEB-INF config.dir = ${resource.dir}/config installation.config = ${config.dir}/jforum-custom.conf # Only change these values if you know what you're doing anonymous.userId = 1 defaultUserGroup = 1 cache.engine.default = net.jforum.cache.DefaultCacheEngine cache.engine.jboss = net.jforum.cache.JBossCacheEngine cache.engine.ehcache = net.jforum.cache.EhCacheEngine jboss.cache.properties = ${config.dir}/jboss-cache-cluster.xml ehcache.cache.properties = ${config.dir}/ehcache.xml cache.engine.implementation = ${cache.engine.default} cacheable.objects = net.jforum.repository.BBCodeRepository, \ net.jforum.repository.RankingRepository, \ net.jforum.repository.SmiliesRepository, \ net.jforum.repository.ForumRepository, \ net.jforum.repository.TopicRepository, \ net.jforum.SessionFacade, \ net.jforum.repository.PostRepository, \ net.jforum.repository.Tpl, \ net.jforum.repository.RolesRepository, \ net.jforum.repository.SecurityRepository, \ net.jforum.repository.BanlistRepository # The template to use template.dir = default # If you change this value, is necessary to edit WEB-INF/web.xml as well servlet.extension = .page ########### # COOKIES ########### cookie.name.data = jforumUserId cookie.name.user = jforumUserInfo cookie.name.autologin = jforumAutoLogin cookie.name.userHash = jforumUserHash ################## # OTHER SETTINGS ################## tmp.dir = tmp cache.dir = cache templates.mapping = ${config.dir}/templatesMapping.properties locales.dir = ${config.dir}/languages/ locales.names = locales.properties smilie.image.dir = images/smilies smilie.image.pattern = background.tasks = true clickstream.config = ${config.dir}/clickstream-jforum.xml quartz.config = ${config.dir}/quartz-jforum.properties # whether the post contents on the user posts page are always visible, # or whether they're initially invisible, and displayed after a mouse click user.posts.toggle = false # Default charset used by the servlet container. # # **It's unlikely** you will have to change this value, # even if you're using a Cyrillic alphabet. # # For detailed information, please see # http://www.jforum.net/confluence/display/configuration/charEncodingContainer # default.container.encoding = ISO-8859-1 # the period in milliseconds the config files are watched for changes # set it to 0 (zero) to disable it completely file.changes.delay = 2000 # If you have freemarker templates residing outside of the JForum webapp # you can add the path to the directory containing them here. # Add the full path to the directory. freemarker.extra.template.path = ########## # Summary ########## summary.enabled = false summary.days.before = 7 ################### # Stop Forum Spam ################### stopForumSpam.api.enabled = true stopForumSpam.api.url = http://www.stopforumspam.com/api? # System version version = 2.4.1 version.check.enabled = true jforum.version.url = http://www.andowson.com/latest_version.txt