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
<?php | |
// eu adicionei | |
require("ratingcalculator.php") | |
// Cria uma instância da classe RatingCalculator | |
$calculator = new RatingCalculator(); | |
// Calcula a movimentação de rating para os jogadores A e B | |
$results = $calculator->calculate(1500, 1600, 16, 24); |
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 |
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
<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
<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
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
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
# 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
# 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
# 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 |
NewerOlder