diff --git a/logbook/aguia-pescadora-bravo.sh b/logbook/aguia-pescadora-bravo.sh index 982fdba..c5e9f65 100644 --- a/logbook/aguia-pescadora-bravo.sh +++ b/logbook/aguia-pescadora-bravo.sh @@ -1258,6 +1258,33 @@ sudo systemctl reload haproxy ## Teste se o usuario do haproxy consegue acessar mysql -h elefante-borneu-yul-01.etica.ai -u haproxy +#------------------------------------------------------------------------------# +# SEÇÃO 5.5: FERRAMENTAS PARA GERENCIAMENTO ADMINISTRATIVO DE DADOS # +# # +# TL;DR: PHPMyAdmin, etc # +#------------------------------------------------------------------------------# + +#### PHPMyAdmin ________________________________________________________________ +### @see https://github.com/fititnt/cplp-aiops/issues/53 + +## Vamos usar o que vem por padrão no Ubuntu 18.04 +# @see https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-18-04 +# @see https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-ubuntu-16-04 + +sudo apt install phpmyadmin + +sudo cp /etc/nginx/sites-available/EXEMPLO-PROXY.abp.etica.ai.conf /etc/nginx/sites-available/phpmyadmin.apb.etica.ai.conf + +sudo vim /etc/nginx/sites-available/phpmyadmin.apb.etica.ai.conf +# Adicione todas as customizacoes deste usuario no arquivo acima... + +sudo ln -s /etc/nginx/sites-available/phpmyadmin.apb.etica.ai.conf /etc/nginx/sites-enabled/ +#sudo nginx -t +#sudo systemctl reload nginx + +#sudo certbot --nginx -d phpmyadmin.apb.etica.ai + + #------------------------------------------------------------------------------# # SEÇÃO 6.0: GERENCIAMENTO DE PROCESSOS # # # diff --git a/logbook/aguia-pescadora-bravo/etc/nginx/sites-available/phpmyadmin.apb.etica.ai.conf b/logbook/aguia-pescadora-bravo/etc/nginx/sites-available/phpmyadmin.apb.etica.ai.conf new file mode 100644 index 0000000..d49d017 --- /dev/null +++ b/logbook/aguia-pescadora-bravo/etc/nginx/sites-available/phpmyadmin.apb.etica.ai.conf @@ -0,0 +1,16 @@ +# FILE: /etc/nginx/sites-available/phpmyadmin.abp.etica.ai.conf + +server { + + listen 80; + listen [::]:80; + + server_name phpmyadmin.apb.etica.ai; + root /usr/share/phpmyadmin; + index index.html index.htm index.php; + + location / { + proxy_ignore_client_abort on; + proxy_pass http://127.0.0.1:9999; + } +}