Skip to content

Commit 5b924de

Browse files
committed
Add docker-compose settings
1 parent b8884cf commit 5b924de

16 files changed

Lines changed: 1030 additions & 2 deletions

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: shinsenter
4+
custom: ['https://www.paypal.me/shinsenter']

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
.vscode/*.txt
3+
/cache
4+
/certs
5+
/logs

.vscode/conf2doc.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
BASE=$(dirname $0)
4+
README=$BASE/../README.md
5+
6+
USAGE="$(
7+
grep -aPzo --color=never \
8+
'\n\n## (.|\n)*?\nmap (.|\n)*?\n}' \
9+
$BASE/../imgproxy.conf |
10+
tr -d '\0' |
11+
perl -pe 's/^\s*$//g' |
12+
perl -pe 's/^map/```nginx\nmap/g' |
13+
perl -pe 's/^}\s*/}\n```\n/g' |
14+
perl -pe 's/^#+ *(\*.*)$/\1<br\/>/g' |
15+
perl -pe 's/^#+ *(.*)$/\1/g' |
16+
perl -pe 's/^(\s+# +.*[^;\s])$/\n\1/g' |
17+
perl -pe 's/^/> /g' |
18+
perl -pe 's/^> +$/>/g' |
19+
perl -pe 's/```\s+/```\n\n\n/g'
20+
)"
21+
22+
perl -i -p0e 's#> \*\*(.|\n)*```#@@@@@@#' $README
23+
24+
CONTENT="$(cat $README)"
25+
echo "${CONTENT/@@@@@@/$USAGE}" >$README

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.rulers": [80, 100],
3+
"files.trimTrailingWhitespace": true,
4+
"spellright.language": [],
5+
"spellright.documentTypes": [
6+
"latex",
7+
"plaintext"
8+
]
9+
}

0 commit comments

Comments
 (0)