Skip to content

Commit

Permalink
aguia-pescadora-bravo (#16), grafana (#50): Dominio customizado para …
Browse files Browse the repository at this point in the history
…Grafana; criado configuracao padrao do nginx para novos projetos
  • Loading branch information
fititnt committed May 28, 2019
1 parent 73c487d commit 3b71639
Show file tree
Hide file tree
Showing 5 changed files with 591 additions and 5 deletions.
26 changes: 22 additions & 4 deletions logbook/aguia-pescadora-alpha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,25 @@ sudo apt-get install zangband


#------------------------------------------------------------------------------#
# temp...
# O que estiver a partir daqui são comandos que foram realizadas e ainda não
# foram propriamente documentados (fititnt, 2019-05-19 05:04 BRT)
sudo apt-get install fish
# SEÇÃO: OUTROS #
# TL;DR: Itens ainda não formalmente documentados e/ou em período de teste #
#------------------------------------------------------------------------------#

### Fish ("the friendly interactive shel" ______________________________________
# ...
apt-get install fish

### Grafana ____________________________________________________________________
# @see https://github.com/fititnt/cplp-aiops/issues/50

# @see https://grafana.com/docs/installation/debian/#apt-repository
curl https://packages.grafana.com/gpg.key | sudo apt-key add -
sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
sudo apt-get update
sudo apt-get install grafana

sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl status grafana-server

sudo systemctl enable grafana-server.service
13 changes: 12 additions & 1 deletion logbook/aguia-pescadora-bravo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1293,4 +1293,15 @@ sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl status grafana-server

sudo systemctl enable grafana-server.service
sudo systemctl enable grafana-server.service

sudo cp /etc/nginx/sites-available/EXEMPLO-PROXY.abp.etica.ai.conf /etc/nginx/sites-available/grafana.apb.etica.ai.conf

sudo vim /etc/nginx/sites-available/grafana.apb.etica.ai.conf
# Adicione todas as customizacoes deste usuario no arquivo acima...

sudo ln -s /etc/nginx/sites-available/grafana.apb.etica.ai.conf /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx

sudo certbot --nginx -d grafana.apb.etica.ai

0 comments on commit 3b71639

Please sign in to comment.