summaryrefslogtreecommitdiff
path: root/config.sh
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2023-04-09 15:44:31 -0400
committerSteph Enders <steph@senders.io>2023-04-09 15:51:53 -0400
commit15c85716b2c22cd7aac616d1b46756a5736b6d52 (patch)
treed3053630080cd8e9f2c4b9ce46be915b10c67889 /config.sh
Create a bash script to publish gemlogsmain
This script and configuration enables users to simply publish a gemtext file and modify their index file with the link. The readme.txt goes into how this will work. Error codes are also noted. The basic usage is built around how my capsule is laid out - so I have an index file at: gemini://senders.io/gemlog/ that uses a descending post order. This is useful for folks so the most recent post is at the top. But index files can be disabled - but if you're doing that then you're basically just using scp :) which I'd say write your own bash script for!
Diffstat (limited to 'config.sh')
-rw-r--r--config.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.sh b/config.sh
new file mode 100644
index 0000000..faefbb1
--- /dev/null
+++ b/config.sh
@@ -0,0 +1,12 @@
+GEMPOST_SSH_HOST=
+GEMPOST_REMOTE_PATH=
+
+# Optional configs
+# GEMPOST_REMOTE_POST_PROCESS=
+
+# 0 disabled | 1 enabled
+GEMPOST_INDEX_ON=0
+GEMPOST_REMOTE_INDEX_FILE=
+GEMPOST_INDEX_LINK_PREFIX=
+## This will be defaulted to ~/.local/share/gempost/index-previous-entry.txt
+# GEMPOST_PREVIOUS_TITLE_FILE=