User Tools

Site Tools


mkauth

Differences

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

Link to this comparison view

Next revision
Previous revision
mkauth [2025/01/31 07:58] – created protocolmkauth [2025/04/18 10:19] (current) protocol
Line 7: Line 7:
 </code> </code>
  
 +===== ssl =====
 +<code>
 +       SSLCertificateFile /etc/letsencrypt/live/intechgrity.com/cert.pem
 +       SSLCertificateKeyFile /etc/letsencrypt/live/intechgrity.com/privkey.pem
 +       SSLCertificateChainFile /etc/letsencrypt/live/intechgrity.com/chain.pem
 +       
 +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>
mkauth.1738321104.txt.gz · Last modified: 2025/01/31 07:58 by protocol