Posts with the tag: devops
Using Dependabot to keep your environment up to date
Read in 3 minutes ·Adding dependencies in a project is seen as a good way to not reinvent the wheel but at the same time it can be concerning in many different aspects: Versioning: sometimes dependencies can require specific versions of other dependencies and this can cause hiccups in your app; Bundling: you need to be careful here to not bring extra code that will bloat your bundles; Updating: JavaScript moves fast and if you don’t update packages regularly, you’ll play Jenga in the future.
Protegendo projetos com o .htaccess
Read in 1 minute ·O Apache pode te ajudar a proteger um projeto com seu sistema de autenticação. E isso é mais fácil do que você pensa. Para tal, crie um arquivo .htaccess com o seguinte conteúdo: AuthUserFile /home/leonardo/public_html/project/.htpasswd AuthGroupFile /dev/null AuthName "Restricted Access" AuthType Basic <limit GET> require valid-user </limit> Após isso, crie um .htpasswd com os dados de usuário e senha (atenção ao caminho do arquivo). A senha é criptografada e o conteúdo do arquivo é algo como o seguinte: