source: extensions/net.sf.basedb.ftp/trunk/ftp.config @ 716

Last change on this file since 716 was 716, checked in by Nicklas Nordborg, 15 years ago

References #114: Implement FTP Server

Cleaned up code and documentation. Added lots of debugging/logging. Added license text to source files.

File size: 6.7 KB
Line 
1# $Id $
2#
3# Copyright (C) 2008 Nicklas Nordborg
4#
5# This file is part of FTP extension for BASE.
6# Available at http://baseplugins.thep.lu.se/
7#
8# BASE is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License
10# as published by the Free Software Foundation; either version 2
11# of the License, or (at your option) any later version.
12#
13# BASE is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place - Suite 330,
21# Boston, MA  02111-1307, USA.
22# -------------------------------------------------------------
23# Licensed to the Apache Software Foundation (ASF) under one
24# or more contributor license agreements.  See the NOTICE file
25# distributed with this work for additional information
26# regarding copyright ownership.  The ASF licenses this file
27# to you under the Apache License, Version 2.0 (the
28# "License"); you may not use this file except in compliance
29# with the License.  You may obtain a copy of the License at
30#
31#  http://www.apache.org/licenses/LICENSE-2.0
32#
33# Unless required by applicable law or agreed to in writing,
34# software distributed under the License is distributed on an
35# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
36# KIND, either express or implied.  See the License for the
37# specific language governing permissions and limitations
38# under the License.
39
40## Properties file based configuration
41
42##-----------------------------------------------------------------------------
43## This is the listener configuration. Additional listeners can be added if required.
44## If you want to support SSL connections, please specify ssl block
45##-----------------------------------------------------------------------------
46config.listeners.default.class=org.apache.ftpserver.listener.mina.MinaListener
47config.listeners.default.address=localhost
48config.listeners.default.port=21210
49config.listeners.default.implicit-ssl=false
50#config.listeners.default.ssl.class=org.apache.ftpserver.ssl.DefaultSsl
51#config.listeners.default.ssl.keystore-file=./res/.keystore
52#config.listeners.default.ssl.keystore-password=password
53#config.listeners.default.ssl.keystore-type=JKS
54#config.listeners.default.ssl.keystore-algorithm=SunX509
55#config.listeners.default.ssl.ssl-protocol=TLS
56#config.listeners.default.ssl.client-authentication=false
57#config.listeners.default.ssl.key-password=password
58
59##------------------------------------------------------------------------------
60## Data connection configuration
61## If you want to use encrypted data connection, please use ssl block.
62##------------------------------------------------------------------------------
63config.listeners.default.data-connection.class=org.apache.ftpserver.DefaultDataConnectionConfig
64config.listeners.default.data-connection.idle-time=10
65config.listeners.default.data-connection.active.enable=true
66config.listeners.default.data-connection.active.local-address=localhost
67config.listeners.default.data-connection.active.local-port=20200
68config.listeners.default.data-connection.active.ip-check=false
69config.listeners.default.data-connection.passive.address=localhost
70config.listeners.default.data-connection.passive.ports=0
71config.listeners.default.data-connection.passive.external-address=127.0.0.1
72#config.listeners.default.data-connection.ssl.class=org.apache.ftpserver.ssl.DefaultSsl
73#config.listeners.default.data-connection.ssl.keystore-file=./res/.keystore
74#config.listeners.default.data-connection.ssl.keystore-password=password
75#config.listeners.default.data-connection.ssl.keystore-type=JKS
76#config.listeners.default.data-connection.ssl.keystore-algorithm=SunX509
77#config.listeners.default.data-connection.ssl.ssl-protocol=TLS
78#config.listeners.default.data-connection.ssl.client-authentication=false
79#config.listeners.default.data-connection.ssl.key-password=password
80
81##-----------------------------------------------------------------------------
82## BASE User manager configuration
83## Class name is hardcoded into the API and is displayed here just for reference
84##-----------------------------------------------------------------------------
85#config.user-manager.class=net.sf.basedb.clients.ftp.BaseUserManager
86#config.user-manager.max-download-rate=0
87#config.user-manager.max-upload-rate=0
88
89
90##-----------------------------------------------------------------------------
91## Ftp message configuration block
92##-----------------------------------------------------------------------------
93#config.message.class=org.apache.ftpserver.message.MessageResourceImpl
94#config.message.custom-message-dir=./res
95#config.message.languages=en,zh-tw
96
97
98##-----------------------------------------------------------------------------
99## Connection manager configuration
100##-----------------------------------------------------------------------------
101config.connection-manager.max-connection=20
102config.connection-manager.max-login=10
103config.connection-manager.anonymous-login-enabled=false
104config.connection-manager.default-idle-time=60
105config.connection-manager.timeout-poll-inverval=60
106config.connection-manager.max-login-failures=3
107config.connection-manager.login-failure-delay=500
108
109
110##-----------------------------------------------------------------------------
111## Command factory configuration
112##-----------------------------------------------------------------------------
113#config.command-factory.command.command-name=fully-qualified-command-class-name
114
115
116##-----------------------------------------------------------------------------
117## This is the IP restrictor configuration
118##-----------------------------------------------------------------------------
119#config.ip-restrictor.class=org.apache.ftpserver.iprestrictor.FileIpRestrictor
120#config.ip-restrictor.file=./res/ip.gen
121
122##------------------------------------------------------------------------------
123## All ftplets
124##------------------------------------------------------------------------------
125#config.ftplets=f1, f2
126
127##------------------------------------------------------------------------------
128## Ftplet f1 configuration
129##------------------------------------------------------------------------------
130#config.ftplet.f1.class=org.apache.ftpserver.ftplet.Ftplet1
131#config.ftplet.f1.param=value1
132
133
134##------------------------------------------------------------------------------
135## Ftplet f2 configuration
136##------------------------------------------------------------------------------
137#config.ftplet.f2.class=org.apache.ftpserver.ftplet.Ftplet2
138#config.ftplet.f2.param=value2
Note: See TracBrowser for help on using the repository browser.