From 9934dd538b0ce116e3b1600272cb46369b082246 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Wed, 2 Feb 2022 13:34:47 +0800 Subject: init commit --- demo/client.sh | 30 ++ dovecot/90-sieve.conf | 206 ++++++++++++ dovecot/Makefile | 2 + dovecot/dovecot.conf | 34 ++ dovecot/sieve | 149 +++++++++ git/README.md | 9 + git/create.sh | 53 ++++ git/daemon.sh | 7 + git/git-daemon.service | 21 ++ nginx/.gitignore | 2 + nginx/Makefile | 28 ++ nginx/layout/gal.xslt | 67 ++++ nginx/layout/simple-gal.xslt | 36 +++ nginx/layout/simple.xslt | 51 +++ nginx/nginx.conf | 131 ++++++++ nginx/passwd/2022.10.11 | 1 + nginx/passwd/houshou | 1 + nginx/passwd/japan | 1 + nginx/passwd/ntumountainclub | 1 + nginx/passwd/rescue | 1 + nginx/sites-available/vps | 354 +++++++++++++++++++++ postfix/Makefile | 9 + postfix/aliases | 268 ++++++++++++++++ postfix/main.cf | 701 +++++++++++++++++++++++++++++++++++++++++ postfix/master.cf | 141 +++++++++ postfix/opendkim/opendkim.conf | 6 + postfix/virtual | 328 +++++++++++++++++++ rclone/Makefile | 23 ++ smtpd/Makefile | 8 + smtpd/mail/spam | 11 + smtpd/smtpd.conf | 47 +++ ssh/local.conf | 4 + www/.gitignore | 1 + www/Makefile | 14 + www/assets/favicon.ico | Bin 0 -> 549 bytes www/assets/gpg.asc | 84 +++++ www/assets/robots.txt | 4 + www/assets/style.css | 213 +++++++++++++ www/assets/wp-admin.php | 1 + www/scripts/add-graph.py | 35 ++ www/scripts/build.sh | 188 +++++++++++ www/templates/footer.html | 4 + www/templates/head.html | 10 + www/templates/header.html | 17 + www/templates/index.md | 1 + 45 files changed, 3303 insertions(+) create mode 100644 demo/client.sh create mode 100644 dovecot/90-sieve.conf create mode 100644 dovecot/Makefile create mode 100644 dovecot/dovecot.conf create mode 100644 dovecot/sieve create mode 100644 git/README.md create mode 100755 git/create.sh create mode 100755 git/daemon.sh create mode 100644 git/git-daemon.service create mode 100644 nginx/.gitignore create mode 100644 nginx/Makefile create mode 100644 nginx/layout/gal.xslt create mode 100644 nginx/layout/simple-gal.xslt create mode 100644 nginx/layout/simple.xslt create mode 100644 nginx/nginx.conf create mode 100644 nginx/passwd/2022.10.11 create mode 100644 nginx/passwd/houshou create mode 100644 nginx/passwd/japan create mode 100644 nginx/passwd/ntumountainclub create mode 100644 nginx/passwd/rescue create mode 100644 nginx/sites-available/vps create mode 100644 postfix/Makefile create mode 100644 postfix/aliases create mode 100644 postfix/main.cf create mode 100644 postfix/master.cf create mode 100644 postfix/opendkim/opendkim.conf create mode 100644 postfix/virtual create mode 100644 rclone/Makefile create mode 100644 smtpd/Makefile create mode 100755 smtpd/mail/spam create mode 100644 smtpd/smtpd.conf create mode 100644 ssh/local.conf create mode 100644 www/.gitignore create mode 100644 www/Makefile create mode 100644 www/assets/favicon.ico create mode 100644 www/assets/gpg.asc create mode 100644 www/assets/robots.txt create mode 100644 www/assets/style.css create mode 100644 www/assets/wp-admin.php create mode 100755 www/scripts/add-graph.py create mode 100755 www/scripts/build.sh create mode 100644 www/templates/footer.html create mode 100644 www/templates/head.html create mode 100644 www/templates/header.html create mode 100644 www/templates/index.md diff --git a/demo/client.sh b/demo/client.sh new file mode 100644 index 0000000..5d4a3c4 --- /dev/null +++ b/demo/client.sh @@ -0,0 +1,30 @@ +# Enter tmux session on this host + +# RUN the following command to quickly execute this script +# curl demo.topo.tw | sh + +# Add private key as temporary file +# Remove it when script is exited +IDENTITY_FILE=$(mktemp -t demo.key.XXXX) +trap "rm $IDENTITY_FILE" EXIT + +# This private key can only run command 'tmux -r' on remote +<$IDENTITY_FILE +-----BEGIN OPENSSH PRIVATE KEY----- +b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAaAAAABNlY2RzYS +1zaGEyLW5pc3RwMjU2AAAACG5pc3RwMjU2AAAAQQR4XNnhI1OJe4o/yexrMJs3EECymgz4 +UjF9oHl3F+jF/CQ5EDyFaW1IH35Eh0ECHPDfqfzB0BmgZ4zqOs9lvzA2AAAAqPeejtr3no +7aAAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHhc2eEjU4l7ij/J +7GswmzcQQLKaDPhSMX2geXcX6MX8JDkQPIVpbUgffkSHQQIc8N+p/MHQGaBnjOo6z2W/MD +YAAAAhALHPQcjhYNBkrVVzDj6dJbRbN2gqAiJtXPx/iJogfcaqAAAACnBoYW1AdnVsdHIB +AgMEBQ== +-----END OPENSSH PRIVATE KEY----- +KEY + +# Launch SSH connection with private key above +# Use tty of parent shell as STDIN, so user cannot type on the screen +:]path[;