Added templates to have their variables set through bootstrap role's vars' options directory files
This commit is contained in:
2
roles/bootstrap/templates/certbot/porkbun.ini.j2
Normal file
2
roles/bootstrap/templates/certbot/porkbun.ini.j2
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
dns_porkbun_secret={{ dns_secret }}
|
||||||
|
dns_porkbun_key={{ dns_key }}
|
93
roles/bootstrap/templates/proftpd/proftpd.conf.j2
Normal file
93
roles/bootstrap/templates/proftpd/proftpd.conf.j2
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
ServerType standalone
|
||||||
|
ServerName ProFTPd
|
||||||
|
ServerAdmin ftp@sukaato
|
||||||
|
ServerIdent on "Currently on the fallback server..."
|
||||||
|
Protocols ftp
|
||||||
|
DefaultServer on
|
||||||
|
Port 21
|
||||||
|
|
||||||
|
User ftpd
|
||||||
|
Group nogroup
|
||||||
|
|
||||||
|
TransferLog /var/log/proftpd/transfer.log
|
||||||
|
SystemLog /var/log/proftpd/proftpd.log
|
||||||
|
|
||||||
|
<IfModule !mod_tls.c>
|
||||||
|
LoadModule mod_tls.c
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule !mod_ifsession.c>
|
||||||
|
LoadModule mod_ifsession.c
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule !mod_auth_file.c>
|
||||||
|
LoadModule mod_auth_file.c
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<Limit LOGIN SITE_CHMOD>
|
||||||
|
DenyAll
|
||||||
|
</Limit>
|
||||||
|
|
||||||
|
<Global>
|
||||||
|
AuthOrder mod_auth_file.c mod_auth_pam.c mod_auth_unix.c
|
||||||
|
RootLogin off
|
||||||
|
RequireValidShell off
|
||||||
|
UseFtpUsers off
|
||||||
|
PersistentPassword off
|
||||||
|
AllowEmptyPasswords off
|
||||||
|
DisplayConnect {{ welcome_msg_path }}
|
||||||
|
DisplayQuit {{ goodbye_msg_path }}
|
||||||
|
DisplayFileTransfer {{ transfer_msg_path }}
|
||||||
|
Umask {{ default_umask }}
|
||||||
|
MaxClients 35
|
||||||
|
MaxClientsPerUser 5
|
||||||
|
MaxLoginAttempts 4
|
||||||
|
TimeoutSession 28800
|
||||||
|
TimeoutNoTransfer 900
|
||||||
|
TimeoutStalled 900
|
||||||
|
TimeoutIdle 1200
|
||||||
|
TimeoutLinger 120
|
||||||
|
ListOptions "" maxdepth 3
|
||||||
|
AllowOverwrite on
|
||||||
|
ShowSymlinks on
|
||||||
|
|
||||||
|
<IfModule mod_ident.c>
|
||||||
|
IdentLookups off
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mod_quotatab.c>
|
||||||
|
QuotaEngine off
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mod_ratio.c>
|
||||||
|
Ratios off
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mod_delay.c>
|
||||||
|
DelayEngine on
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<Limit SITE_CHMOD SITE_CHGRP>
|
||||||
|
DenyAll
|
||||||
|
</Limit>
|
||||||
|
|
||||||
|
<Limit LOGIN>
|
||||||
|
AllowUser OR {{ users_allowed }}
|
||||||
|
DenyAll
|
||||||
|
</Limit>
|
||||||
|
|
||||||
|
DirFakeUser on ~
|
||||||
|
DirFakeGroup on ~
|
||||||
|
|
||||||
|
DefaultRoot ~
|
||||||
|
|
||||||
|
<Directory /*>
|
||||||
|
HideFiles ^\.
|
||||||
|
|
||||||
|
<Limit DIRS APPE DELE RMD XRMD RNTO RNFR SYMLINK>
|
||||||
|
IgnoreHidden on
|
||||||
|
</Limit>
|
||||||
|
</Directory>
|
||||||
|
</Global>
|
||||||
|
|
||||||
|
Include /etc/proftpd/conf.d/*.conf
|
31
roles/bootstrap/templates/proftpd/vhost.conf.j2
Normal file
31
roles/bootstrap/templates/proftpd/vhost.conf.j2
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<IfModule mod_tls.c>
|
||||||
|
<VirtualHost 0.0.0.0>
|
||||||
|
ServerName {{ servername }}
|
||||||
|
ServerAdmin {{ admin_email }}
|
||||||
|
ServerAlias {{ serveralias }}
|
||||||
|
ServerIdent on "Welcome to %v!"
|
||||||
|
Protocols {{ ftp_protocols }}
|
||||||
|
Port {{ ftp_port }}
|
||||||
|
{# PassivePorts 49152 65534 #}
|
||||||
|
DisplayChdir .category.msg
|
||||||
|
DisplayLogin .welcome.msg
|
||||||
|
|
||||||
|
TLSEngine on
|
||||||
|
TLSLog /var/log/proftpd/tls.log
|
||||||
|
TLSProtocol SSLv23
|
||||||
|
TLSOptions AllowClientRenegotiations
|
||||||
|
TLSVerifyClient off
|
||||||
|
TLSRequired on
|
||||||
|
TLSRenegotiate required off
|
||||||
|
|
||||||
|
TLSECCertificateFile {{ sec_cert_path }}
|
||||||
|
TLSCACertificateFile {{ sca_cert_path }}
|
||||||
|
TLSECCertificateKeyFile {{ key_cert_path }}
|
||||||
|
|
||||||
|
<IfModule mod_auth_file.c>
|
||||||
|
AuthUserFile {{ ftp_auth_user_path }}
|
||||||
|
AuthGroupFile {{ ftp_auth_group_path }}
|
||||||
|
AuthFileOptions SyntaxCheck
|
||||||
|
</IfModule>
|
||||||
|
</VirtualHost>
|
||||||
|
</IfModule>
|
Reference in New Issue
Block a user