After installing smartfox server, you will find some configuration files in smartfox installation directory. In my case my installation directory is D:\projects\SmartFoxServer2X
Go to D:\projects\SmartFoxServer2X\SFS2X\config
Here you will find server.xml with smartfox configuration. This file is used by smartfox server when it is accessed in the browser. Iam listing the contents of the file here . Make sure you are using the ip in the <socketAddresses> tag. Please avoid to use 127.0.0.1. This file has those details that can be overriden via
http://10.0.3.74:8080/admin/ . Please see this image
<serverSettings>
<socketAddresses>
<socket address="10.0.3.74" port="9933" type="TCP"/>
</socketAddresses>
<ipFilter>
<addressBlackList>
<string>1.2.3.4</string>
</addressBlackList>
<addressWhiteList>
<string>127.0.0.1</string>
<string>10.0.2.155</string>
</addressWhiteList>
<maxConnectionsPerAddress>9999999</maxConnectionsPerAddress>
</ipFilter>
<flashCrossdomainPolicy>
<useMasterSocketPolicy>true</useMasterSocketPolicy>
<policyXmlFile>crossdomain.xml</policyXmlFile>
</flashCrossdomainPolicy>
<systemControllerThreadPoolSize>1</systemControllerThreadPoolSize>
<extensionControllerThreadPoolSize>3</extensionControllerThreadPoolSize>
<systemControllerRequestQueueSize>20000</systemControllerRequestQueueSize>
<extensionControllerRequestQueueSize>20000</extensionControllerRequestQueueSize>
<schedulerThreadPoolSize>3</schedulerThreadPoolSize>
<protocolCompressionThreshold>1024</protocolCompressionThreshold>
<protocolMode>BINARY</protocolMode>
<useBinaryProtocol>true</useBinaryProtocol>
<remoteAdmin>
<administrators>
<adminUser>
<login>sfsadmin</login>
<password>sfsadmin</password>
</adminUser>
</administrators>
<allowedRemoteAddresses/>
<adminTcpPort>-1</adminTcpPort>
</remoteAdmin>
<bannedUserManager>
<isAutoRemove>true</isAutoRemove>
<isPersistent>true</isPersistent>
<customPersistenceClass></customPersistenceClass>
</bannedUserManager>
<mailer>
<isActive>false</isActive>
<mailHost>test.mail.com</mailHost>
<mailUser>foo</mailUser>
<mailPass>pippo</mailPass>
<smtpPort>25</smtpPort>
<workerThreads>1</workerThreads>
</mailer>
<webServer>
<isActive>true</isActive>
<cfgFile>config/jetty/jetty.xml</cfgFile>
<blueBoxPollingTimeout>26</blueBoxPollingTimeout>
<blueBoxMsgQueueSize>40</blueBoxMsgQueueSize>
</webServer>
<webSocket>
<isActive>false</isActive>
<bindAddress>127.0.0.1</bindAddress>
<tcpPort>8888</tcpPort>
<validDomains/>
</webSocket>
<startExtensionFileMonitor>true</startExtensionFileMonitor>
<useDebugMode>true</useDebugMode>
<extensionRemoteDebug>true</extensionRemoteDebug>
<useFriendlyExceptions>true</useFriendlyExceptions>
<sessionMaxIdleTime>50</sessionMaxIdleTime>
<userMaxIdleTime>300</userMaxIdleTime>
<licenseCode></licenseCode>
<licenseEmails></licenseEmails>
<ghostHunterEnabled>false</ghostHunterEnabled>
<statsExtraLoggingEnabled>false</statsExtraLoggingEnabled>
<enableSmasherController>false</enableSmasherController>
</serverSettings>
We have another file located in the same folder config that is core.xml and the contents are listed below. These settings are used by smartfox server for initialization process
<coreSettings>
<systemControllerClass>com.smartfoxserver.v2.controllers.SystemController</systemControllerClass>
<extensionControllerClass>com.smartfoxserver.v2.controllers.ExtensionController</extensionControllerClass>
<ioHandlerClass>com.smartfoxserver.v2.protocol.DefaultIoHandler</ioHandlerClass>
<sessionManagerClass>it.gotoandplay.alt.AltSessionManager</sessionManagerClass>
<packetQueuePolicyClass>it.test.PacketQueueClass</packetQueuePolicyClass>
<readBufferType>Heap</readBufferType>
<writeBufferType>Heap</writeBufferType>
<!-- Editable settings -->
<!-- Max size of incoming packet -->
<maxIncomingRequestSize>8000000</maxIncomingRequestSize>
<!-- Max Size for read buffer -->
<maxReadBufferSize>1024</maxReadBufferSize>
<!-- Max Size for write buffer -->
<maxWriteBufferSize>32768</maxWriteBufferSize>
<!-- Session Queue Size -->
<sessionPacketQueueSize>160</sessionPacketQueueSize>
<!-- Thread Pool Size of the 3 main stages of the Bitswarm Engine -->
<socketAcceptorThreadPoolSize>1</socketAcceptorThreadPoolSize>
<socketReaderThreadPoolSize>1</socketReaderThreadPoolSize>
<socketWriterThreadPoolSize>1</socketWriterThreadPoolSize>
<!-- Enable disable Nagle algorithm on sockets, true == disable -->
<tcpNoDelay>true</tcpNoDelay>
<!-- BlueBox Settings -->
<bbMaxLogFiles>10</bbMaxLogFiles>
<bbMaxLogFileSize>5000000</bbMaxLogFileSize>
<bbDebugMode>false</bbDebugMode>
</coreSettings>
Here we also find log4j.properties file. These are basic settings found in the config folder.
Go to D:\projects\SmartFoxServer2X\SFS2X\config
Here you will find server.xml with smartfox configuration. This file is used by smartfox server when it is accessed in the browser. Iam listing the contents of the file here . Make sure you are using the ip in the <socketAddresses> tag. Please avoid to use 127.0.0.1. This file has those details that can be overriden via
http://10.0.3.74:8080/admin/ . Please see this image
<serverSettings>
<socketAddresses>
<socket address="10.0.3.74" port="9933" type="TCP"/>
</socketAddresses>
<ipFilter>
<addressBlackList>
<string>1.2.3.4</string>
</addressBlackList>
<addressWhiteList>
<string>127.0.0.1</string>
<string>10.0.2.155</string>
</addressWhiteList>
<maxConnectionsPerAddress>9999999</maxConnectionsPerAddress>
</ipFilter>
<flashCrossdomainPolicy>
<useMasterSocketPolicy>true</useMasterSocketPolicy>
<policyXmlFile>crossdomain.xml</policyXmlFile>
</flashCrossdomainPolicy>
<systemControllerThreadPoolSize>1</systemControllerThreadPoolSize>
<extensionControllerThreadPoolSize>3</extensionControllerThreadPoolSize>
<systemControllerRequestQueueSize>20000</systemControllerRequestQueueSize>
<extensionControllerRequestQueueSize>20000</extensionControllerRequestQueueSize>
<schedulerThreadPoolSize>3</schedulerThreadPoolSize>
<protocolCompressionThreshold>1024</protocolCompressionThreshold>
<protocolMode>BINARY</protocolMode>
<useBinaryProtocol>true</useBinaryProtocol>
<remoteAdmin>
<administrators>
<adminUser>
<login>sfsadmin</login>
<password>sfsadmin</password>
</adminUser>
</administrators>
<allowedRemoteAddresses/>
<adminTcpPort>-1</adminTcpPort>
</remoteAdmin>
<bannedUserManager>
<isAutoRemove>true</isAutoRemove>
<isPersistent>true</isPersistent>
<customPersistenceClass></customPersistenceClass>
</bannedUserManager>
<mailer>
<isActive>false</isActive>
<mailHost>test.mail.com</mailHost>
<mailUser>foo</mailUser>
<mailPass>pippo</mailPass>
<smtpPort>25</smtpPort>
<workerThreads>1</workerThreads>
</mailer>
<webServer>
<isActive>true</isActive>
<cfgFile>config/jetty/jetty.xml</cfgFile>
<blueBoxPollingTimeout>26</blueBoxPollingTimeout>
<blueBoxMsgQueueSize>40</blueBoxMsgQueueSize>
</webServer>
<webSocket>
<isActive>false</isActive>
<bindAddress>127.0.0.1</bindAddress>
<tcpPort>8888</tcpPort>
<validDomains/>
</webSocket>
<startExtensionFileMonitor>true</startExtensionFileMonitor>
<useDebugMode>true</useDebugMode>
<extensionRemoteDebug>true</extensionRemoteDebug>
<useFriendlyExceptions>true</useFriendlyExceptions>
<sessionMaxIdleTime>50</sessionMaxIdleTime>
<userMaxIdleTime>300</userMaxIdleTime>
<licenseCode></licenseCode>
<licenseEmails></licenseEmails>
<ghostHunterEnabled>false</ghostHunterEnabled>
<statsExtraLoggingEnabled>false</statsExtraLoggingEnabled>
<enableSmasherController>false</enableSmasherController>
</serverSettings>
We have another file located in the same folder config that is core.xml and the contents are listed below. These settings are used by smartfox server for initialization process
<coreSettings>
<systemControllerClass>com.smartfoxserver.v2.controllers.SystemController</systemControllerClass>
<extensionControllerClass>com.smartfoxserver.v2.controllers.ExtensionController</extensionControllerClass>
<ioHandlerClass>com.smartfoxserver.v2.protocol.DefaultIoHandler</ioHandlerClass>
<sessionManagerClass>it.gotoandplay.alt.AltSessionManager</sessionManagerClass>
<packetQueuePolicyClass>it.test.PacketQueueClass</packetQueuePolicyClass>
<readBufferType>Heap</readBufferType>
<writeBufferType>Heap</writeBufferType>
<!-- Editable settings -->
<!-- Max size of incoming packet -->
<maxIncomingRequestSize>8000000</maxIncomingRequestSize>
<!-- Max Size for read buffer -->
<maxReadBufferSize>1024</maxReadBufferSize>
<!-- Max Size for write buffer -->
<maxWriteBufferSize>32768</maxWriteBufferSize>
<!-- Session Queue Size -->
<sessionPacketQueueSize>160</sessionPacketQueueSize>
<!-- Thread Pool Size of the 3 main stages of the Bitswarm Engine -->
<socketAcceptorThreadPoolSize>1</socketAcceptorThreadPoolSize>
<socketReaderThreadPoolSize>1</socketReaderThreadPoolSize>
<socketWriterThreadPoolSize>1</socketWriterThreadPoolSize>
<!-- Enable disable Nagle algorithm on sockets, true == disable -->
<tcpNoDelay>true</tcpNoDelay>
<!-- BlueBox Settings -->
<bbMaxLogFiles>10</bbMaxLogFiles>
<bbMaxLogFileSize>5000000</bbMaxLogFileSize>
<bbDebugMode>false</bbDebugMode>
</coreSettings>
Here we also find log4j.properties file. These are basic settings found in the config folder.
No comments:
Post a Comment