diff --git a/.gitattributes b/.gitattributes index 161350b2..db0271c1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -288,6 +288,8 @@ etc/alternc/templates/postfix/mygid.cf -text etc/alternc/templates/postfix/myvirtual.cf -text etc/alternc/templates/postfix/sasl/smtpd.conf -text etc/alternc/templates/proftpd.conf -text +etc/alternc/templates/proftpd/proftpd.conf -text +etc/alternc/templates/proftpd/welcome.msg -text etc/alternc/templates/squirrelmail/apache.conf -text etc/alternc/templates/welcome.msg -text install/alternc.install -text diff --git a/etc/alternc/templates/proftpd/proftpd.conf b/etc/alternc/templates/proftpd/proftpd.conf new file mode 100644 index 00000000..3856c08e --- /dev/null +++ b/etc/alternc/templates/proftpd/proftpd.conf @@ -0,0 +1,86 @@ +# +# Fichier de configuration de ProFTPd pour AlternC +# $Id: proftpd.conf,v 1.11 2006/01/17 12:04:14 benjamin Exp $ +# +# %%warning_message%% +# version SARGE + +ServerName "%%hosting%%" +ServerIdent on "FTP Server Ready" +ServerType standalone +DeferWelcome on + +ShowSymlinks on +MultilineRFC2228 on +DefaultServer on +AllowOverwrite on +AllowStoreRestart on +DefaultRoot ~ +UseReverseDNS off +IdentLookups off + + +TimeoutNoTransfer 600 +TimeoutStalled 600 +TimeoutIdle 1200 + +DisplayLogin /etc/welcome.msg +DisplayFirstChdir .message + +ListOptions "-al" + +DenyFilter \*.*/ +Port 21 +MaxInstances 30 +User nobody +Group nogroup +RequireValidShell off + +TLSDSACertificateFile /etc/apache-ssl/apache.pem +TLSEngine on + + + DenyAll + + + + Umask 022 022 + AllowOverwrite on +# Limit the allowed bandwith for each connexion, prevent ressource hold-up ;) +TransferRate RETR 64 +TransferRate APPE,STOR 64 + + AllowAll + + +MaxClientsPerHost 6 "Sorry, no more than 6 simultaneous connections" +AccessGrantMsg "Welcome on AlternC, %u" + +# database@host:port login password +SQLConnectInfo %%dbname%%@%%dbhost%%:3306 %%dbuser%% %%dbpwd%% +# Table : +SQLUserInfo ftpusers name encrypted_password 33 uid homedir NULL + +# Use mysql PASSWORD function +SQLAuthTypes Crypt +# Only mysql authentication enabled +SQLAuthenticate users +AuthPAM off +# Default : www-data.www-data +SQLDefaultGID 33 +SQLDefaultUID 33 +# Do NOT create the homedir if it does not exist +SQLHomedirOnDemand off +# Minimum ID allowed to log in. Other users should use SFTP +SQLMinID 33 + +# We don't use Unix rights managment on AlternC, so let's hide real owner/group/rights +DirFakeGroup on alternc +DirFakeMode 0640 +DirFakeUser on ~ + +# And chmod command is forbidden too : + + DenyAll + + diff --git a/etc/alternc/templates/proftpd/welcome.msg b/etc/alternc/templates/proftpd/welcome.msg new file mode 100644 index 00000000..c3a9a0a4 --- /dev/null +++ b/etc/alternc/templates/proftpd/welcome.msg @@ -0,0 +1,7 @@ +Bienvenue sur %%hosting%%, +Quota de 6 connexions simultanees dans cette classe, +Bonne journée ;) + +Welcome at %%hosting%%, +6 connections maximum on this class, +Have a nice day ;)