sh -c "$(curl -fsSL https://raw.githubusercontent.com/dyordsabuzo/miscellany/main/tools/terraform-create-template-files.sh)"
This file contains 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
# https://gist.github.com/mattd/1006398/598df8f218a18bc1b0f3415550b4a369f37afb7c | |
server { | |
root /var/www/example.com/static; | |
server_name example.com; | |
access_log /var/log/nginx/example.com.access.log; | |
error_log /var/log/nginx/example.com.error.log; | |
try_files /maintenance.html @proxy; | |
location @proxy { |
This file contains 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 | |
export HOME="/home/web" | |
export AWS_CONFIG_FILE="/home/web/.aws/config" | |
export AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX | |
export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
BACKUP_DIR=/home/web/db/$(date +%Y) | |
DB_FILE=$(ls $BACKUP_DIR -tp |grep -v /$ | head -1) |
This file contains 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
# grant directory rwx to group | |
`setfacl -R -m d:g:{group_name}:rwx {folder_name}/` |
This file contains 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
bundle usually consists of: | |
- example_com.ca-bundle | |
- example_com.crt | |
append bundle contents to crt will yield a chained certificate. |
This file contains 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
`setfacl -R -m d:g:www-data:rwx {directory_target}/` |
This file contains 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
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !=/favicon.ico | |
# CUSTOM - make node export download directory password protectable | |
RewriteCond %{THE_REQUEST} !/sites/default/files/CUSTOM/.* | |
RewriteRule ^ index.php [L] |
NewerOlder