User Tools

Site Tools


mkauth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
mkauth [2025/01/31 09:57] protocolmkauth [2025/04/18 10:19] (current) protocol
Line 14: Line 14:
                
 0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew --deploy-hook "/etc/init.d/apache2 restart" 0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew --deploy-hook "/etc/init.d/apache2 restart"
 +
 +</code>
 +
 +
 +===== HT auth =====
 +
 +<code>
 +
 +
 +
 +
 +  <IfModule mod_dbd.c>
 +    DBDriver mysql
 +    DBDParams host=localhost,dbname=mkradius,user=root,pass=vertrigo
 +    DBDMin 1
 +    DBDKeep 8
 +    DBDMax 16
 +    DBDExptime 300
 +  </IfModule>
 +
 +  <Directory "/admin/">
 +  AuthType Basic
 +  AuthName "Authentication"
 +  AuthBasicProvider socache dbd
 +  AuthnCacheProvideFor dbd
 +  AuthnCacheContext Authentication
 +  Require valid-user
 +  AuthDBDUserPWQuery "SELECT sha FROM sis_acesso WHERE login = %s AND ativo"
 +  </Directory>
  
 </code> </code>
mkauth.txt · Last modified: 2025/04/18 10:19 by protocol