Skip to content

Instantly share code, notes, and snippets.

@galloaleonardo
Last active December 12, 2019 17:21
Show Gist options
  • Save galloaleonardo/76c9682167baa81f2130ff72c8850fc2 to your computer and use it in GitHub Desktop.
Save galloaleonardo/76c9682167baa81f2130ff72c8850fc2 to your computer and use it in GitHub Desktop.
PHP Conference Brasil 2019 - Annotations

PHP CONFERENCE BRASIL 2019 - ANNOTATIONS

Conteúdos/Apresentações:

Links recomendados nas palestas:

Palestra NGINX:

  • Fast_CGI => É um processo do PHP-FPM

Otimizações do Servidor:

  • server_tokens => OFF
    • Manda Info do server no header de toda requisição
  • Timeouts (aumentar tempo de resposta):
  • client_header_timeout
  • client_body_timeout
  • send_timeout
  • keepalive_timeout
  • keepalive_requests
  • Manipulação de arquivo:
    • send_file on
    • tcp_nopush on
    • tcp_nodelay on
    • reset_timeout_connection on
  • Aumentar tamanho da requisição:
    • client_body_buffer_size
    • client_max_body_size
    • client_header_buffer_size
    • large_client_size
  • Proxy limits:
    • proxy_connect_timeout
    • proxy_send_timeout
  • Limitar TLS:
    • ssl_protocols TLSv1.2 TLSv1.3
  • Resolvedor DNS:
    • resolver 8.8.8.8 8.8..4.4 valid=300s
    • resolver_timeout 5s
  • GZIP:
    • gzip on
    • gzip_disable msie6
    • gzip_vary on
    • gzip_proxied any
    • gzip_comp_level 6
    • gzip_buffers 32 16k
    • gzip_types
  • Log stdout container (Docker):
    • error_log /dev/stdout info
    • access_log /dev/stdout
  • HTTP2:
    • listen 442 ssl http2
    • ssl_certificate server.crt
    • ssl_certificate_key server.key
  • Bloquear ataque de bot:
  • Bloqueio SQL Injection
  • Utilizar cahce do NGINX
  • Gerenciar processos FPM

Palestra Profilling:

  • Cache valgrind
  • QCacheGrind
  • composer autoload -o
  • XHProf (profilling em produção)
  • MemoryLeak
  • MemInfo
  • Analyzer summary

Palestra Docker:

  • Emu, oVirt, KVM => Virtualização baseado em Kernel
  • Portainer

Palestra Autenticação Segura:

  • reCAPTCHA v3 (Google)
  • Sonata Google Authenticator
  • Timming Attack
  • hash_equals() (para não comparar string com '==')
  • GateKeeper
  • GPGMail
  • Auth0
  • ACME
  • OpenID
  • Paseto (semelhante ao JWT)
  • Não permitir algorithm = none no JWT
  • The PHPLeague

Palestra PWA:

  • Service work
  • manifest.json
  • HTTPS
  • StencilJS

Palestra WebScrapping:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment