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
| import subprocess | |
| import requests | |
| import json | |
| from typing import List, Dict | |
| # Config Active Directory | |
| IP_AD = "192.168.X.X" # IP do Active Directory | |
| AD_USER = "domain\\user" # Usuário do Active Directory | |
| AD_PASSWORD = "password" # Senha do Active Directory | |
| DOMAIN = "domain.com.br" # Domínio do Active Directory |
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
| upstream fastcgi_backend { | |
| server unix:/run/php/php7.4-fpm.sock; | |
| } | |
| server { | |
| server_name _; | |
| listen 8080; | |
| set $MAGE_ROOT /nfs/magento; | |
| set $MAGE_MODE production; # or production |
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
| server { | |
| listen 80; | |
| server_name _; | |
| access_log /var/log/nginx/access.log; | |
| error_log /var/log/nginx/error.log; | |
| keepalive_timeout 300s; | |
| add_header Strict-Transport-Security "max-age=63072000" always; |
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
| # VCL version 5.0 is not supported so it should be 4.0 even though actually used Varnish version is 6 | |
| vcl 4.0; | |
| import std; | |
| # The minimal Varnish version is 6.0 | |
| # For SSL offloading, pass the following header in your proxy server or load balancer: 'X-Forwarded-Proto: https' | |
| backend default { | |
| .host = "magento-local"; | |
| .port = "8080"; |
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
| #!/bin/bash | |
| apt update | |
| apt install rsyslog -y | |
| sleep 1 | |
| echo "*.* @@10.29.101.9:514" >> /etc/rsyslog.conf | |
| sleep 1 | |
| cat <<EOF > /etc/rsyslog.d/10-docker.conf |
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
| #!/bin/bash | |
| apt update | |
| apt install rsyslog -y | |
| sleep 1 | |
| echo "*.* @@172.31.102.16:514" >> /etc/rsyslog.conf | |
| sleep 1 | |
| cat <<EOF > /etc/rsyslog.d/10-docker.conf |
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] | |
| flush 5 | |
| daemon Off | |
| log_level info | |
| http_server On | |
| http_listen 0.0.0.0 | |
| http_port 2020 | |
| Parsers_File parsers.conf | |
| storage.metrics off |
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
| #!/bin/bash | |
| for i in G M | |
| do | |
| du -ah | grep [0-9]$i | sort -nr -k 1 | |
| done | head -n 11 |
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
| --- | |
| kind: ClusterRole | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| metadata: | |
| name: traefik-ingress-controller | |
| rules: | |
| - apiGroups: | |
| - "" | |
| resources: | |
| - services |