Plataforma de documentação operacional e gerencial da SETIC
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anterior Revisão anterior Próxima revisão | Revisão anterior | ||
playground:testambient7 [2021/10/02 16:01] Letícia Gondim |
playground:testambient7 [2023/05/09 15:44] (atual) |
||
---|---|---|---|
Linha 14: | Linha 14: | ||
.jumbotron{ | .jumbotron{ | ||
- | background-image: | + | background-image: |
background-size: | background-size: | ||
color: white; | color: white; | ||
Linha 20: | Linha 20: | ||
} | } | ||
+ | body{margin-top: | ||
+ | background:# | ||
+ | } | ||
+ | .service-container { | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
- | </ | + | .service-container .icon { |
+ | margin-top: 5%; | ||
+ | font-size: 38px; | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-container .number-icon .icon-2 { | ||
+ | height: 70px; | ||
+ | width: 70px; | ||
+ | line-height: | ||
+ | border-radius: | ||
+ | border-color: | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-container .number-icon .icon-2 i { | ||
+ | font-size: 30px; | ||
+ | } | ||
+ | .service-container .number-icon .number { | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | right: 70px; | ||
+ | left: 0; | ||
+ | height: 35px; | ||
+ | width: 35px; | ||
+ | margin: 0 auto; | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-container .number-icon .number span { | ||
+ | line-height: | ||
+ | } | ||
- | <div class=" | + | .service-container .content .number { |
- | <div class=" | + | font-size: 40px; |
- | <h1 class=" | + | |
- | < | + | } |
- | <p class=" | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <a class=" | + | |
- | <a class=" | + | |
- | <a class=" | + | |
- | <a class=" | + | |
- | <a class=" | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | .service-container .content .title { |
- | <div class=" | + | -webkit-transition: all 0.5s ease; |
- | <div class=" | + | |
- | <h2 class=" | + | } |
- | <div class=" | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | + | ||
- | < | + | |
- | <table style=" | + | |
- | <table style=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | <td>8 GB</ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | <td>1 VHD 500GB</ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | .service-container.hover-bg { |
- | </ | + | -webkit-transition: all 0.5s ease; |
- | </ | + | |
- | <div class=" | + | } |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | < | + | |
- | Adicionando Agente no Gerenciador Wazuh | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | <p>1 - No servidor Wazuh digite:</p> | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | <p> A seguinte tela aparecerá</ | + | |
- | <img src=" | + | |
- | <p>2 – Selecione A para adicionar um agente. Será solicitado o nome do agente (use o nome do host do agente ou outro nome arbitrário), | + | |
- | <br> | + | |
- | < | + | .service-container.hover-bg |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | font-size: 60px; |
- | < | + | |
- | </ | + | -webkit-transition: all 0.8s ease; |
- | </ | + | |
- | <p>2 – Tecle “E”, e depois digite a ID do agente desejado.< | + | } |
- | 3 – Copie a Key para que seja usada no agente desejado. | + | |
- | </p> | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | <p>2 – Tecle “R”, e depois digite a ID do agente desejado. Feito isso, confirme teclando “Y”.</ | + | |
- | </ | + | .service-container.hover-bg:hover { |
- | </ | + | |
- | </ | + | } |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | Instalar agente windows | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | 1 – Acesse o seguinte endereço para baixar o agente:< | + | |
- | </ | + | |
- | <p>2 – Selecione o arquivo correspondente a versão para Windows e efetue o download.</ | + | |
- | <p>3 – Após o download, efetue a instalação do agente, concordando com os termos de uso, e ao final da instalação selecione a checkbox “< | + | .service-container.hover-bg:hover .content |
- | </ | + | color: #ffffff !important; |
- | <p>4 – Com a tela do agente aberta, no campo “< | + | } |
- | </ | + | |
- | <p>5 – Para iniciar o monitoramento, | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | Instalar agente linux | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | <p>A seguir, segue uma descrição de como instalar o agente wazuh em uma distribuição CentOS. Para demais distribuições, | + | |
- | <p>1 - O primeiro passo para instalar o agente Wazuh é adicionar o repositório Wazuh ao computador CentOS desejado. Para isso configure o repositório executando os seguintes comandos no terminal:</p> | + | |
- | < | + | .service-container.hover-bg:hover .content |
- | < | + | |
- | < | + | } |
- | [wazuh_repo]< | + | |
- | gpgcheck=1< | + | |
- | gpgkey=https:// | + | |
- | enabled=1< | + | |
- | name=Wazuh repository< | + | |
- | baseurl=https://packages.wazuh.com/ | + | |
- | protect=1< | + | |
- | EOF</ | + | |
- | </ | + | |
- | </ | + | |
- | <p>2 – Ainda no terminal, execute o seguinte comando para a instalação:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # yum install wazuh-agent | + | |
- | </ | + | |
- | </tr> | + | |
- | | + | |
- | <p>3- Após a instalação, | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>A seguinte tela aparecerá:</ | + | |
- | <img src=" | + | |
- | <p>4 – Pressione a tecla “I” e dê Enter. Após isso, cole ou digite a Key extraída no servidor wazuh para o agente desejado. Confirme a adição teclando “Y”. Feito isso, digite “Q” e tecle Enter para sair da configuração.</ | + | |
- | <p>5 – Edite o arquivo de configuração “< | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # vim / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>Na sessão < | + | |
- | <p>6 – Reinicie o agente com o seguinte comando:</ | + | .service-container.hover-bg:hover .smooth-icon { |
- | < | + | font-size: 100px; |
- | < | + | |
- | < | + | |
- | # / | + | right: 10px; |
- | </ | + | } |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | Atribuindo agentes a grupos | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | <p>1 – No servidor Wazuh digite o seguinte comando no terminal:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | Configurando alertas por e-mail | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | <p>1 – Instale os pacotes necessários, | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # yum update && yum install postfix mailx cyrus-sasl cyrus-sasl-plain | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>2 – Após a instalação, | + | |
- | <p>3 – Adicione ao final do arquivo “main.cf” as seguintes linhas:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | relayhost = [smtp2.detic.ro.gov.br]: | + | |
- | smtp_sasl_auth_enable = yes\\<# echo [smtp2.detic.ro.gov.br]: | + | |
- | # postmap / | + | |
- | # chmod 400 / | + | |
- | smtp_sasl_password_maps = hash:/ | + | |
- | smtp_sasl_security_options = noanonymous\\< | + | |
- | smtp_tls_CAfile = / | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>4 – Configure o e-mail e a senha utilizada para o envio dos e-mails usando os seguintes comandos:</p> | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # echo [smtp2.detic.ro.gov.br]:587 SEU_EMAIL@detic.ro.gov.br: | + | |
- | # postmap / | + | |
- | # chmod 400 / | + | |
- | # postmap / | + | |
- | # chmod 400 / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>5 – Para proteger a senha do banco de dados, utilize os seguintes comandos:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # chown root:root / | + | |
- | # chmod 0600 / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>6 – Reinicie o Postfix:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # systemctl reload postfix | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>7 – Para configurar o Wazuh para enviar os alertas de e-mail, as configurações de e-mail devem ser configuradas na seção < global > do arquivo “ossec.conf”. Para isso, utilizando o editor de sua preferência, | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < jsonout_output> | + | |
- | < alerts_log> | + | |
- | < logall> | + | |
- | < logall_json> | + | |
- | < email_notification> | + | |
- | < smtp_server> | + | |
- | < email_from> | + | |
- | < email_to> | + | |
- | < email_maxperhour> | + | |
- | < / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>8 – Após a configuração acima, precisamos definir o nível mínimo de alerta que irá acionar um e-mail. Por padrão, o nível é definido como 7. Se desejar mudar, basta alterar o número referente ao nível dentro do campo: < email_alert_level >. No exemplo abaixo, definiremos o nível mínimo como 10:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < ossec_config>< | + | |
- | < alerts>< | + | |
- | < email_alert_level> | + | |
- | < / | + | |
- | | + | |
- | < / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>9 – Ao final da edição do arquivo “ossec.conf”, | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # systemctl restart wazuh-manager | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | .service-container: |
- | <div class=" | + | |
- | < | + | -webkit-box-shadow: 0 10px 25px rgba(47, 60, 78, 0.15) !important; |
- | <div class=" | + | box-shadow: 0 10px 25px rgba(47, 60, 78, 0.15) !important; |
- | | + | } |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | <p>O OpenScap Scanner funciona somente em máquinas Linux, e precisa ser instalado e configurado após a instalação do agente wazuh. Segue abaixo os passos para a instalação:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # yum install openscap-scanner | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>2 – Após a instalação do openscap-scanner, com o editor de sua preferência, abra o arquivo: / | + | |
- | <p>3 – Salve o arquivo e reinicie o ossec-control com o seguinte comando:</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | .service-container: |
- | </ | + | color: #f89d36; |
- | <div class=" | + | -webkit-animation: mover 1s infinite alternate; |
- | < | + | |
- | <div class=" | + | } |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h5 class=" | + | |
- | <p class=" | + | |
- | < | + | |
- | <a href=" | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | <div class=" | + | |
- | + | ||
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | memory_limit = 64M; // max memory limit< | + | |
- | file_uploads = on;< | + | |
- | max_execution_time = 600; // not mandatory but adviced< | + | |
- | register_globals = off; // not mandatory but adviced< | + | |
- | magic_quotes_sybase = off;< | + | |
- | session.auto_start = off;< | + | |
- | session.use_trans_sid = 0; // not mandatory but adviced | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | Informações da VM | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | .service-container: |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | } |
- | Instalação GLPI servidor CentOS | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | <p>1 - Instalação dos pacotes php e apache obrigatórios</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | yum install ca-certificates apache2 libapache2-mod-php php-cli php php-gd php-imap php-ldap php-mysql php-soap php-xmlrpc zip unzip bzip2 unrar-free php-snmp php-curl php-json php-memcached php-dev php-mbstring php-apcu-bc php-pear-CAS php-opcache -y | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>2 - copiar pasta do GLPI para / | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | cp -Rf glpi / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | DocumentRoot "/ | + | |
- | < Directory "/ | + | |
- | AllowOverride All< | + | |
- | < / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>4 - Permissão para os arquivos</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | | + | |
- | # chown apache. / | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>5 - Acessar e criar banco de dados</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | #mysql -u root -p< | + | |
- | mysql> create database glpi;< | + | |
- | mysql> create user ' | + | |
- | mysql> grant all on glpi.* to glpi identified by ' | + | |
- | mysql> quit; | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | .service-container:hover .number-icon .icon-2 i { |
- | <div class=" | + | |
- | <h2 class=" | + | } |
- | <div class=" | + | |
- | Continuar instalação através do navegador | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | <p>1 - Acessar o GLPI através do navegador pelo IP ou domínio</ | + | |
- | <p>2 - Selecionar idioma</ | + | |
- | <p>3 - verificar lista de dos requisitos de instalação e continuar se todos os requisitos estiverem ok, do contrário realizar as instalações de dependências que for solicitado.</ | + | |
- | < | + | |
- | <p>5 - Instalação finalizada.</ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h5 class=" | + | |
- | <p class=" | + | |
- | < | + | |
- | <a href=" | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div class=" | + | |
- | + | ||
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <h2 class=" | + | |
- | <div class=" | + | |
- | Instalar agente linux | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <div id=" | + | |
- | <div class=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | <p>{.is-info}</ | + | |
- | < | + | |
- | <p>1. Primeiramente, | + | |
- | <p>2. Após a instalação das atualizações, | + | |
- | <p>3. Antes de configurar o repositório, | + | |
- | <p>4. Adicione o repositório do PostgreSQL ```` echo “deb<a href=" | + | |
- | <p>5. Verifique se o repositório foi adicionado corretamente usando o comando `cat` ```` $ cat / | + | |
- | <p>6. Atualize a lista de pacotes do sistema ```` sudo apt update ````</ | + | |
- | <p>7. Instale o PostgreSQL ```` sudo apt -y install postgresql-13 postgresql-client-13 ````</ | + | |
- | <p>8. Inicie o servidor do BD ```` sudo pg_ctlcluster 13 main start ````</ | + | |
- | <p>9. Confirme o status do serviço utilizando o `journalctl` ```` $ systemctl status postgresql@13-main.service ● postgresql@13-main.service - PostgreSQL Cluster 13-main</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | Loaded: loaded (/ | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | | + | |
- | < | + | |
- | < | + | |
- | Tasks: 7 (limit: 4580) | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | List of roles | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | List of databases< | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | | | + | |
- | | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p>(4 rows) ````</ | + | |
- | < | + | |
- | <p># IPv4 local connections: | + | |
- | < | + | |
- | <p># TYPE DATABASE USER ADDRESS METHOD</ | + | |
- | <p># “local” is for Unix domain socket connections only local all all peer # IPv4 local connections: | + | |
- | < | + | |
- | < | + | |
- | <p>1. Baixe o repositório do Node.js utilizando o `curl` ```` curl -sL<a href=" | + | |
- | <p>2. Instale o Node.js utilizando o `apt` ```` apt install nodejs ````</ | + | |
- | <p>3. Confira a versão instalada com o comando: ```` $ node –version v16.6.0 ````</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | type: postgres | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # PostgreSQL / MySQL / MariaDB / MS SQL Server only:< | + | |
- | host: localhost< | + | |
- | port: 5432< | + | |
- | user: wikijs< | + | |
- | pass: wikijsrocks< | + | |
- | db: wiki< | + | |
- | ssl: false | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # Optional - PostgreSQL / MySQL / MariaDB only: | + | |
- | # -> Uncomment lines you need below and set `auto` to false< | + | |
- | # -> Full list of accepted options: https:// | + | |
- | sslOptions:< | + | |
- | auto: true< | + | |
- | # rejectUnauthorized: | + | |
- | # ca: path/ | + | |
- | # cert: path/ | + | |
- | # key: path/ | + | |
- | # pfx: path/ | + | |
- | # passphrase: xyz123 | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # SQLite only:< | + | |
- | storage: path/ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | <p># ——————————————————————— # SSL/TLS Settings # ——————————————————————— # Consider using a reverse proxy (e.g. nginx) if you require more # advanced options than those provided below.</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | enabled: false< | + | |
- | port: 3443 | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # Provider to use, possible values: custom, letsencrypt< | + | |
- | provider: custom | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # ++++++ For custom only ++++++< | + | |
- | # Certificate format, either ' | + | |
- | format: pem< | + | |
- | # Using PEM format:< | + | |
- | key: path/ | + | |
- | cert: path/ | + | |
- | # Using PFX format:< | + | |
- | pfx: path/ | + | |
- | # Passphrase when using encrypted PEM / PFX keys (default: null):< | + | |
- | passphrase: null< | + | |
- | # Diffie Hellman parameters, with key length being greater or equal< | + | |
- | # to 1024 bits (default: null):< | + | |
- | dhparam: null< | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # ++++++ For letsencrypt only ++++++< | + | |
- | domain: wiki.yourdomain.com< | + | |
- | subscriberEmail: | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p># ——————————————————————— # Database Pool Options # ——————————————————————— # Refer to<a href=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | # min: 2< | + | |
- | # max: 10 | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <p># ——————————————————————— # IP address the server should listen to # ——————————————————————— # Leave 0.0.0.0 for all interfaces</ | + | |
- | < | + | |
- | <p># ——————————————————————— # Log Level # ——————————————————————— # Possible values: error, warn, info (default), verbose, debug, silly</ | + | |
- | < | + | |
- | <p># ——————————————————————— # Offline Mode # ——————————————————————— # If your server cannot access the internet. Set to true and manually # download the offline files for sideloading.</ | + | |
- | < | + | |
- | <p># ——————————————————————— # High-Availability # ——————————————————————— # Set to true if you have multiple concurrent instances running off the # same DB (e.g. Kubernetes pods / load balanced instances). Leave false # otherwise. You MUST be using PostgreSQL to use this feature.</ | + | |
- | < | + | |
- | <p># ——————————————————————— # Data Path # ——————————————————————— # Writeable data path used for cache and temporary user uploads. dataPath: ./data ````</ | + | |
- | <p>5. Por razões de segurança, nós queremos que o serviço seja executado por um usuário sem privilégios. Para tal, criaremos um usuário e grupo respectivo. ```` groupadd -r wikijs useradd -r -s /bin/false -g wikijs wikijs chown -R wikijs: | + | |
- | <p>6. Crie o serviço ```` vim / | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | <p>7. Antes de prosseguir, é necessário recarregar o systemd ```` systemctl daemon-reload ````</ | + | |
- | <p>8. Ative e inicie o serviço ```` systemctl enable –now wiki ````</ | + | |
- | <p>9. Para acompanhar o status de execução do serviço, use o `journalctl` ```` journalctl -u wiki ````</ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
+ | .service-container: | ||
+ | color: #ffffff; | ||
+ | background: #f89d36 !important; | ||
+ | border-color: | ||
+ | } | ||
+ | .service-container: | ||
+ | color: #f89d36; | ||
+ | } | ||
+ | .service-container a:hover, | ||
+ | .service-container a .title: | ||
+ | color: #f89d36 !important; | ||
+ | } | ||
+ | @-webkit-keyframes mover { | ||
+ | 0% { | ||
+ | -webkit-transform: | ||
+ | transform: translateY(0); | ||
+ | } | ||
+ | 100% { | ||
+ | -webkit-transform: | ||
+ | transform: translateY(-15px); | ||
+ | } | ||
+ | } | ||
+ | @keyframes mover { | ||
+ | 0% { | ||
+ | -webkit-transform: | ||
+ | transform: translateY(0); | ||
+ | } | ||
+ | 100% { | ||
+ | -webkit-transform: | ||
+ | transform: translateY(-15px); | ||
+ | } | ||
+ | } | ||
+ | .service-wrapper { | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-wrapper .icon { | ||
+ | width: 60px; | ||
+ | height: 60px; | ||
+ | line-height: | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-wrapper .content .title { | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | font-weight: | ||
+ | } | ||
+ | .service-wrapper .big-icon { | ||
+ | position: absolute; | ||
+ | right: 0; | ||
+ | bottom: 0; | ||
+ | opacity: 0.05; | ||
+ | -webkit-transition: | ||
+ | transition: all 0.5s ease; | ||
+ | } | ||
+ | .service-wrapper: | ||
+ | -webkit-box-shadow: | ||
+ | box-shadow: 0 10px 25px rgba(47, 60, 78, 0.15) !important; | ||
+ | background: #ffffff; | ||
+ | -webkit-transform: | ||
+ | transform: translateY(-8px); | ||
+ | border-color: | ||
+ | } | ||
+ | .service-wrapper: | ||
+ | background: #0062ff !important; | ||
+ | color: #ffffff !important; | ||
+ | } | ||
+ | .service-wrapper: | ||
+ | z-index: -1; | ||
+ | opacity: 0.1; | ||
+ | font-size: 160px; | ||
+ | } | ||
+ | .text-custom { | ||
+ | color: #0062ff !important; | ||
+ | } | ||
+ | .uim-svg { | ||
+ | display: inline-block; | ||
+ | height: 1em; | ||
+ | vertical-align: | ||
+ | font-size: inherit; | ||
+ | fill: var(--uim-color, | ||
+ | } | ||
+ | </ | ||
Linha 946: | Linha 233: | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <h1 class=" | ||
+ | <hr> | ||
+ | <p class=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | <div class=" | ||
+ | <h5 class=" | ||
+ | <p class=" | ||
+ | <div class=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | <div class=" | ||
+ | <h5 class=" | ||
+ | <p class=" | ||
+ | <div class=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | <div class=" | ||
+ | <h5 class=" | ||
+ | <p class=" | ||
+ | <div class=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | <div class=" | ||
+ | <h5 class=" | ||
+ | <p class=" | ||
+ | <div class=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | <div class=" | ||
+ | <h5 class=" | ||
+ | <p class=" | ||
+ | <div class=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | <span class=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
</ | </ |