This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>CONFIGURAÇÕES</h1> | |
<div id="configs"> | |
<p>Para essa tela, ao selecionar ou deselecionar um item o mesmo será automaticamente salvo.</p> | |
<h5>SERVIÇOS</h5> | |
<div class="form-group" *ngFor="let servico of servicos"> | |
<label><input type="checkbox" id="servico_{{servico.servico.id}}" (click)="..." ng-checked="isServicoSelecionadoById(servico.servico.id)" /> {{servico.secretaria}} - {{servico.servico.nome}}</label> | |
</div> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12 columns"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# atualize o servidor | |
apt-get update && apt-get upgrade -y | |
apt-get install git -y | |
# clone o repositório do certbot e o configure | |
git clone https://github.com/certbot/certbot /opt/letsencrypt | |
cd /opt/letsencrypt | |
# instale o certbot também por linha de comando | |
apt install certbot python3-certbot-nginx -y | |
# crie o certificado SSL. troque SUB.DOMAIN.EXT para o domínio que deve já estar apontado para seu servidor e com a propagação concluída | |
sudo certbot certonly --standalone -d SUB.DOMAIN.EXT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# crontab -e | |
@weekly root cd /opt/letsencrypt && git pull >> /var/log/letsencrypt/letsencrypt-auto-update.log | |
@monthly root certbot certonly --quiet --standalone --renew-by-default -d <DOMINIO> >> /var/log/letsencrypt/letsencrypt-auto-update.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vá para o diretório do Wowza | |
cd /usr/local/WowzaStreamingEngine/lib | |
# Baixe o arquivo java no diretório lib | |
wget https://github.com/robymus/wowza-letsencrypt-converter/releases/download/v0.1/wowza-letsencrypt-converter-0.1.jar | |
# Crie o arquivo JKS | |
# Caso você tenha o executável java em suas variáveis de ambiente | |
java -jar wowza-letsencrypt-converter-0.1.jar -v /usr/local/WowzaStreamingEngine/conf/ /etc/letsencrypt/live/ | |
# Caso não o possua |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /usr/local/WowzaStreamingEngine/conf/jksmap.txt | |
# Este comando deve mostrar algo parecido com isto: SUB.DOMAIN.EXT={"keyStorePath":"/usr/local/WowzaStreamingEngine/conf/SUB.DOMAIN.EXT.jks", "keyStorePassword":"secret", "keyStoreType":"JKS"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/local/WowzaStreamingEngine/conf | |
nano VHost.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<SSLConfig> | |
<KeyStorePath>${com.wowza.wms.context.VHostConfigHome}/conf/keystore.jks</KeyStorePath> | |
<KeyStorePassword>[password]</KeyStorePassword> | |
<KeyStoreType>JKS</KeyStoreType> | |
<DomainToKeyStoreMapPath></DomainToKeyStoreMapPath> | |
<SSLProtocol>TLS</SSLProtocol> | |
<Algorithm>SunX509</Algorithm> | |
<CipherSuites></CipherSuites> | |
<Protocols></Protocols> | |
<AllowHttp2>false</AllowHttp2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<SSLConfig> | |
<KeyStorePath>${com.wowza.wms.context.VHostConfigHome}/conf/SUB.DOMAIN.EXT.jks</KeyStorePath> | |
<KeyStorePassword>secret</KeyStorePassword> | |
<KeyStoreType>JKS</KeyStoreType> | |
<DomainToKeyStoreMapPath></DomainToKeyStoreMapPath> | |
<SSLProtocol>TLS</SSLProtocol> | |
<Algorithm>SunX509</Algorithm> | |
<CipherSuites></CipherSuites> | |
<Protocols></Protocols> | |
<AllowHttp2>false</AllowHttp2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano /usr/local/WowzaStreamingEngine/manager/conf/tomcat.properties | |
# Altere as configurações padrões de | |
#httpsPort=8090 | |
#httpsKeyStore=conf/certificate.jks | |
#httpsKeyStorePassword=[password] | |
#httpsKeyAlias=[key-alias] | |
# Para: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service WowzaStreamingEngineManager restart | |
service WowzaStreamingEngine restart |
OlderNewer