1 | # Licensed to the Apache Software Foundation (ASF) under one |
---|
2 | # or more contributor license agreements. See the NOTICE file |
---|
3 | # distributed with this work for additional information |
---|
4 | # regarding copyright ownership. The ASF licenses this file |
---|
5 | # to you under the Apache License, Version 2.0 (the |
---|
6 | # "License"); you may not use this file except in compliance |
---|
7 | # with the License. You may obtain a copy of the License at |
---|
8 | # |
---|
9 | # http://www.apache.org/licenses/LICENSE-2.0 |
---|
10 | # |
---|
11 | # Unless required by applicable law or agreed to in writing, |
---|
12 | # software distributed under the License is distributed on an |
---|
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
---|
14 | # KIND, either express or implied. See the License for the |
---|
15 | # specific language governing permissions and limitations |
---|
16 | # under the License. |
---|
17 | |
---|
18 | ## Properties file based configuration |
---|
19 | |
---|
20 | ##----------------------------------------------------------------------------- |
---|
21 | ## This is the listener configuration. Additional listeners can be added if required. |
---|
22 | ## If you want to support SSL connections, please specify ssl block |
---|
23 | ##----------------------------------------------------------------------------- |
---|
24 | config.listeners.default.class=org.apache.ftpserver.listener.mina.MinaListener |
---|
25 | config.listeners.default.address=localhost |
---|
26 | config.listeners.default.port=21210 |
---|
27 | config.listeners.default.implicit-ssl=false |
---|
28 | #config.listeners.default.ssl.class=org.apache.ftpserver.ssl.DefaultSsl |
---|
29 | #config.listeners.default.ssl.keystore-file=./res/.keystore |
---|
30 | #config.listeners.default.ssl.keystore-password=password |
---|
31 | #config.listeners.default.ssl.keystore-type=JKS |
---|
32 | #config.listeners.default.ssl.keystore-algorithm=SunX509 |
---|
33 | #config.listeners.default.ssl.ssl-protocol=TLS |
---|
34 | #config.listeners.default.ssl.client-authentication=false |
---|
35 | #config.listeners.default.ssl.key-password=password |
---|
36 | |
---|
37 | ##------------------------------------------------------------------------------ |
---|
38 | ## Data connection configuration |
---|
39 | ## If you want to use encrypted data connection, please use ssl block. |
---|
40 | ##------------------------------------------------------------------------------ |
---|
41 | config.listeners.default.data-connection.class=org.apache.ftpserver.DefaultDataConnectionConfig |
---|
42 | config.listeners.default.data-connection.idle-time=10 |
---|
43 | config.listeners.default.data-connection.active.enable=true |
---|
44 | config.listeners.default.data-connection.active.local-address=localhost |
---|
45 | config.listeners.default.data-connection.active.local-port=20200 |
---|
46 | config.listeners.default.data-connection.active.ip-check=false |
---|
47 | config.listeners.default.data-connection.passive.address=localhost |
---|
48 | config.listeners.default.data-connection.passive.ports=0 |
---|
49 | config.listeners.default.data-connection.passive.external-address=127.0.0.1 |
---|
50 | #config.listeners.default.data-connection.ssl.class=org.apache.ftpserver.ssl.DefaultSsl |
---|
51 | #config.listeners.default.data-connection.ssl.keystore-file=./res/.keystore |
---|
52 | #config.listeners.default.data-connection.ssl.keystore-password=password |
---|
53 | #config.listeners.default.data-connection.ssl.keystore-type=JKS |
---|
54 | #config.listeners.default.data-connection.ssl.keystore-algorithm=SunX509 |
---|
55 | #config.listeners.default.data-connection.ssl.ssl-protocol=TLS |
---|
56 | #config.listeners.default.data-connection.ssl.client-authentication=false |
---|
57 | #config.listeners.default.data-connection.ssl.key-password=password |
---|
58 | |
---|
59 | ##----------------------------------------------------------------------------- |
---|
60 | ## Ftp message configuration block |
---|
61 | ##----------------------------------------------------------------------------- |
---|
62 | #config.message.class=org.apache.ftpserver.message.MessageResourceImpl |
---|
63 | #config.message.custom-message-dir=./res |
---|
64 | #config.message.languages=en,zh-tw |
---|
65 | |
---|
66 | |
---|
67 | ##----------------------------------------------------------------------------- |
---|
68 | ## Connection manager configuration |
---|
69 | ##----------------------------------------------------------------------------- |
---|
70 | config.connection-manager.max-connection=20 |
---|
71 | config.connection-manager.max-login=10 |
---|
72 | config.connection-manager.anonymous-login-enabled=false |
---|
73 | #config.connection-manager.max-anonymous-login=10 |
---|
74 | config.connection-manager.default-idle-time=60 |
---|
75 | config.connection-manager.timeout-poll-inverval=60 |
---|
76 | config.connection-manager.max-login-failures=3 |
---|
77 | config.connection-manager.login-failure-delay=500 |
---|
78 | |
---|
79 | |
---|
80 | ##----------------------------------------------------------------------------- |
---|
81 | ## Command factory configuration |
---|
82 | ##----------------------------------------------------------------------------- |
---|
83 | #config.command-factory.command.command-name=fully-qualified-command-class-name |
---|
84 | |
---|
85 | |
---|
86 | ##----------------------------------------------------------------------------- |
---|
87 | ## This is the IP restrictor configuration |
---|
88 | ##----------------------------------------------------------------------------- |
---|
89 | #config.ip-restrictor.class=org.apache.ftpserver.iprestrictor.FileIpRestrictor |
---|
90 | #config.ip-restrictor.file=./res/ip.gen |
---|
91 | |
---|
92 | ##------------------------------------------------------------------------------ |
---|
93 | ## All ftplets |
---|
94 | ##------------------------------------------------------------------------------ |
---|
95 | #config.ftplets=f1, f2 |
---|
96 | |
---|
97 | ##------------------------------------------------------------------------------ |
---|
98 | ## Ftplet f1 configuration |
---|
99 | ##------------------------------------------------------------------------------ |
---|
100 | #config.ftplet.f1.class=org.apache.ftpserver.ftplet.Ftplet1 |
---|
101 | #config.ftplet.f1.param=value1 |
---|
102 | |
---|
103 | |
---|
104 | ##------------------------------------------------------------------------------ |
---|
105 | ## Ftplet f2 configuration |
---|
106 | ##------------------------------------------------------------------------------ |
---|
107 | #config.ftplet.f2.class=org.apache.ftpserver.ftplet.Ftplet2 |
---|
108 | #config.ftplet.f2.param=value2 |
---|