Skip to content

Commit

Permalink
aguia-pescadora-bravo (#16), phpmyadmin (#53): iniciada instalação de…
Browse files Browse the repository at this point in the history
… PHPMyAdmin padrão com NGinx
  • Loading branch information
fititnt committed May 31, 2019
1 parent d9893e4 commit d414654
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
27 changes: 27 additions & 0 deletions logbook/aguia-pescadora-bravo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
# #
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit d414654

Please sign in to comment.