| Title: FtpServer Server |
| Notice: Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| . |
| http://www.apache.org/licenses/LICENSE-2.0 |
| . |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| |
| # Server |
| |
| Some configuration is done for the entire server. This affects all listeners, for login limits, the sum of the logins for all listeners are enforced. |
| |
| Using the XML configuration, this following examples shows all available configurations for the server |
| |
| :::XML |
| <server xmlns="http://mina.apache.org/ftpserver/spring/v1" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://mina.apache.org/ftpserver/spring/v1 http://mina.apache.org/ftpserver/ftpserver-1.0.xsd" |
| id="server" |
| max-logins="500" |
| anon-enabled="false" |
| max-anon-logins="123" |
| max-login-failures="124" |
| login-failure-delay="125"> |
| ... |
| </server> |
| |
| ## server element |
| |
| | Attribute | Description | Required | Default value | |
| |---|---|---|---| |
| | id | A unique identifier for this server within this XML configiration | Yes | | |
| | max-threads | The maximum number of threads used in the thread pool for handling client connections | No | max-logins, or 16 if neither value is set | |
| | max-logins | The maximum number of simultaneous users | No | 10 | |
| | max-anon-logins | The maximum number of simultaneous anonymous users | No | 10 | |
| | anon-enabled | Are anonymous logins enabled? | No | true | |
| | max-login-failures | The number of failed login attempts before the connection is closed | No | 3 | |
| | login-failure-delay | The number of milliseconds that the connection is delayed after a failed login attempt. Used to limit to possibility of brute force guessing passwords. | No | 500 | |
| |
| |