wwforonce commited on
Commit
940e285
·
1 Parent(s): f87affc

add readeck

Browse files
Files changed (4) hide show
  1. Caddyfile +4 -0
  2. Dockerfile +1 -0
  3. readeck.toml +11 -0
  4. start_with_sync.sh +9 -0
Caddyfile CHANGED
@@ -17,6 +17,10 @@
17
  handle_path /apiv3/* {
18
  reverse_proxy localhost:8881
19
  }
 
 
 
 
20
 
21
  # openweb-ui
22
  reverse_proxy localhost:8080
 
17
  handle_path /apiv3/* {
18
  reverse_proxy localhost:8881
19
  }
20
+ # readeck
21
+ handle /readeck/*{
22
+ reverse_proxy localhost:7000
23
+ }
24
 
25
  # openweb-ui
26
  reverse_proxy localhost:8080
Dockerfile CHANGED
@@ -76,6 +76,7 @@ COPY --chown=appuser:appuser ./add_bash_util.sh ${HOME}/add_bash_util.sh
76
  COPY --chown=appuser:appuser ./Caddyfile ${HOME}/Caddyfile
77
  COPY --chown=appuser:appuser ./crypt.sh ${HOME}/crypt.sh
78
  COPY --chown=appuser:appuser ./gemini ${HOME}/gemini
 
79
 
80
  # Make scripts executable
81
  RUN chmod +x ${HOME}/*.py ${HOME}/*.sh
 
76
  COPY --chown=appuser:appuser ./Caddyfile ${HOME}/Caddyfile
77
  COPY --chown=appuser:appuser ./crypt.sh ${HOME}/crypt.sh
78
  COPY --chown=appuser:appuser ./gemini ${HOME}/gemini
79
+ COPY --chown=appuser:appuser ./readeck.toml ${HOME}/readeck.toml
80
 
81
  # Make scripts executable
82
  RUN chmod +x ${HOME}/*.py ${HOME}/*.sh
readeck.toml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [main]
2
+ log_level = "INFO"
3
+ data_directory = "./data"
4
+
5
+ [server]
6
+ host = "0.0.0.0"
7
+ port = 7000
8
+ prefix = "readeck"
9
+
10
+ [database]
11
+ source = "sqlite3:data/db.sqlite3"
start_with_sync.sh CHANGED
@@ -142,6 +142,15 @@ WEBUI_PID=$!
142
  # Wait for Open WebUI process
143
  # wait $WEBUI_PID
144
 
 
 
 
 
 
 
 
 
 
145
 
146
 
147
  gh_install caddyserver/caddy linux_amd64.tar.gz /tmp/caddy.tar.gz
 
142
  # Wait for Open WebUI process
143
  # wait $WEBUI_PID
144
 
145
+ # readeck
146
+ mkdir -p $DATA_DIR/readeck-data
147
+ readeck_url=$(curl -X 'GET' 'https://codeberg.org/api/v1/repos/readeck/readeck/releases/latest' -H 'accept: application/json' | jq -r '.assets[] | .browser_download_url | select(. | endswith("linux-amd64"))')
148
+ echo download readeck from $readeck_url
149
+ wget -q $readeck_url -O $DATA_DIR/readeck-data/readeck
150
+ chmod a+x $DATA_DIR/readeck-data/readeck
151
+ cp ${HOME}/readeck.toml $DATA_DIR/readeck-data/readeck.toml
152
+ echo "Starting readeck..."
153
+ cd $DATA_DIR/readeck-data && ./readeck serve -config ./readeck.toml &
154
 
155
 
156
  gh_install caddyserver/caddy linux_amd64.tar.gz /tmp/caddy.tar.gz