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
| - name: Slack Notification | |
| uses: 8398a7/action-slack@v3 | |
| with: | |
| status: ${{ job.status }} | |
| fields: repo,message,commit,author | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
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
| postgres: | |
| image: 'postgres:16.0' | |
| environment: | |
| POSTGRES_DB: dbhost | |
| POSTGRES_USER: user | |
| POSTGRES_PASSWORD: password | |
| deploy: | |
| placement: | |
| constraints: | |
| - node.role == manager |
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
| { | |
| "host": "/run/php/php8.2-fpm.sock", | |
| "port": 0, | |
| "path": "/php82-www", | |
| "interval": 10, | |
| "failcount": 3, | |
| "treshold": 5, | |
| "restart_command": "systemctl restart php8.2-fpm.service", | |
| "holdoff": 30, | |
| "timeout": 5, |
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 | |
| # Тимчасовий файл | |
| TMP_FILE="/tmp/aws_ca_central_1_ips.txt" | |
| NGINX_BLOCK_FILE="/etc/nginx/aws-nova-deny.conf" | |
| # Завантажити актуальний список IP | |
| curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | \ | |
| jq -r '.prefixes[] | select(.region=="ca-central-1") | "deny \(.ip_prefix);"' > "$TMP_FILE" |
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
| ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAhuiKfA6RhdGvW4frqrUgwHy0sSGP+a2kFQHi5vuhGQ |
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
| 146.70.178.254/32 | |
| 91.199.118.51/32 | |
| 91.199.118.51/32 | |
| 146.70.178.164/32 | |
| 149.88.106.153/32 | |
| 146.70.178.164/32 | |
| 216.24.216.217/32 | |
| 20.37.101.39/32 | |
| 172.207.171.136/32 | |
| 194.233.73.44/32 |
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
| ###### | |
| ## See https://github.com/awsdocs/elastic-beanstalk-samples/tree/main/configuration-files/aws-provided/security-configuration for refrence. | |
| # .ebextensions/https-instance-securitygroup.config | |
| Resources: | |
| sslSecurityGroupIngress: | |
| Type: AWS::EC2::SecurityGroupIngress | |
| Properties: | |
| GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]} | |
| IpProtocol: tcp | |
| ToPort: 443 |
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
| Source code for article http://ifdattic.com/integrating-datadog-and-logstash-on-aws-ec2/ | |
| The first line provides the full file path, remove it from real files! |
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
| version: "3.3" | |
| services: | |
| reverse-proxy: | |
| image: traefik:latest | |
| restart: unless-stopped | |
| command: | |
| - --api | |
| - --providers.docker=true | |
| - --entrypoints.web.address=:80 |
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
| # to enable this filter add to jail.conf following (/etc/fail2ban/jail.conf) | |
| # Thanks to -> TheBarret | |
| [nginx-4xx] | |
| enabled = true | |
| port = http,https | |
| logpath = /var/log/nginx/access.log | |
| maxretry = 3 |
NewerOlder