ansible-roles/proftpd/templates/evolinux.conf.j2
Ludovic Poujol cd46dd8320
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
proftpd: Add a warning if config file was overriden
2022-09-13 16:31:03 +02:00

44 lines
931 B
Django/Jinja

# Evolix's specific configuration
{% if proftpd_ftp_override %}
# WARNING : **Probably** ansible managed
{% endif %}
<IfModule !mod_ident.c>
LoadModule mod_ident.c
</IfModule>
ServerName "{{ proftpd_hostname }} FTP Server"
ServerIdent on "FTP Server Ready"
AccessGrantMsg "Hey, bienvenue %u sur le serveur FTP {{ proftpd_fqdn }} !"
AuthUserFile /etc/proftpd/vpasswd
# Connexion limits
MaxInstances 50
MaxClients 40
MaxClientsPerHost 20
# Network settings
PassivePorts 60000 61000
UseReverseDNS off
IdentLookups off
TimesGMT off
Port {{ proftpd_port }}
{% if proftpd_default_address != [] %}
DefaultAddress {{ proftpd_default_address | join(' ') }}
{% endif %}
# Local permissions
DefaultRoot ~
Umask 137 027
RequireValidShell off
UseFtpUsers off
# Allow RESUME (REST command)
AllowStoreRestart on
<Limit LOGIN>
AllowGroup ftpusers
DenyAll
</Limit>