full bork of content locations / menu + pen

This commit is contained in:
cellarspoon 2022-01-17 14:13:24 +01:00
parent 2b21d9d73a
commit d6faf134f9
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410
6 changed files with 48 additions and 20 deletions

7
.gitignore vendored
View File

@ -2,8 +2,9 @@
.env .env
.venv/ .venv/
/content/calendar/ /content/calendar/
/content/feed/ /content/pen/
/content/hash/ /content/shouts/
/content/video/ /content/social/
/content/tv/
/public/ /public/
resources resources

View File

@ -56,13 +56,13 @@ export CALENDAR_URL="https://cloud.lumbung.space/remote.php/dav/public-calendars
export OUTPUT_DIR=content/calendar export OUTPUT_DIR=content/calendar
lumbunglib-cal lumbunglib-cal
export OUTPUT_DIR=content/video export OUTPUT_DIR=content/tv
lumbunglib-vid lumbunglib-vid
export OUTPUT_DIR=content/feed export OUTPUT_DIR=content/shouts
lumbunglib-feed # reads ./feeds_list.txt lumbunglib-feed # reads ./feeds_list.txt
export OUTPUT_DIR=content/hash export OUTPUT_DIR=content/social
export MASTODON_AUTH_TOKEN=foobar export MASTODON_AUTH_TOKEN=foobar
lumbunglib-hash lumbunglib-hash
``` ```

View File

@ -33,17 +33,17 @@ services:
- "traefik.http.services.coop-cloud-site.loadbalancer.server.port=1313" - "traefik.http.services.coop-cloud-site.loadbalancer.server.port=1313"
- "traefik.http.routers.coop-cloud-site.tls.certresolver=production" - "traefik.http.routers.coop-cloud-site.tls.certresolver=production"
peertube: tv:
image: decentral1se/beta.lumbung.space-scripts:latest image: decentral1se/beta.lumbung.space-scripts:latest
volumes: volumes:
- content:/src/content - content:/src/content
environment: environment:
OUTPUT_DIR: /src/content/video OUTPUT_DIR: /src/content/tv
command: | command: |
bash -c " bash -c "
while true while true
do do
echo 'generating peertube posts...' echo 'generating tv posts...'
/usr/local/bin/lumbunglib-vid /usr/local/bin/lumbunglib-vid
echo 'going to sleep for 5 minutes...' echo 'going to sleep for 5 minutes...'
sleep 300 sleep 300
@ -68,7 +68,7 @@ services:
done done
" "
feed: shouts:
image: decentral1se/beta.lumbung.space-scripts:latest image: decentral1se/beta.lumbung.space-scripts:latest
volumes: volumes:
- content:/src/content - content:/src/content
@ -76,32 +76,52 @@ services:
- source: feeds_list - source: feeds_list
target: /src/feeds_list.txt target: /src/feeds_list.txt
environment: environment:
OUTPUT_DIR: /src/content/feed OUTPUT_DIR: /src/content/shouts
command: | command: |
bash -c " bash -c "
while true while true
do do
echo 'generating feed posts...' echo 'generating shouts posts...'
/usr/local/bin/lumbunglib-feed /usr/local/bin/lumbunglib-feed
echo 'going to sleep for 5 minutes...' echo 'going to sleep for 5 minutes...'
sleep 300 sleep 300
done done
" "
hashtag: pen:
image: decentral1se/beta.lumbung.space-scripts:latest
volumes:
- content:/src/content
configs:
- source: feeds_list_pen
target: /src/feeds_list.txt
environment:
OUTPUT_DIR: /src/content/pen
command: |
bash -c "
while true
do
echo 'generating pen posts...'
/usr/local/bin/lumbunglib-feed
echo 'going to sleep for 5 minutes...'
sleep 300
done
"
social:
image: decentral1se/beta.lumbung.space-scripts:latest image: decentral1se/beta.lumbung.space-scripts:latest
volumes: volumes:
- content:/src/content/ - content:/src/content/
secrets: secrets:
- masto_key - masto_key
environment: environment:
OUTPUT_DIR: /src/content/hash OUTPUT_DIR: /src/content/social
command: | command: |
bash -c " bash -c "
export MASTODON_AUTH_TOKEN=`cat /run/secrets/masto_key`; export MASTODON_AUTH_TOKEN=`cat /run/secrets/masto_key`;
while true while true
do do
echo 'generating mastodon posts...' echo 'generating social posts...'
/usr/local/bin/lumbunglib-hash /usr/local/bin/lumbunglib-hash
echo 'going to sleep for 5 minutes...' echo 'going to sleep for 5 minutes...'
sleep 300 sleep 300
@ -119,6 +139,9 @@ configs:
feeds_list: feeds_list:
name: beta_lumbung_space_feeds_list_v1 name: beta_lumbung_space_feeds_list_v1
file: feeds_list.txt file: feeds_list.txt
feeds_list_pen:
name: beta_lumbung_space_feeds_list_pen_v1
file: feeds_list_pen.txt
secrets: secrets:
masto_key: masto_key:

1
feeds_list_pen.txt Normal file
View File

@ -0,0 +1 @@
https://pen.lumbung.space/feed/

View File

@ -7,8 +7,8 @@ gen:
@CALENDAR_URL="https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"; \ @CALENDAR_URL="https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"; \
OUTPUT_DIR=content/calendar; \ OUTPUT_DIR=content/calendar; \
lumbunglib-cal && \ lumbunglib-cal && \
OUTPUT_DIR=content/video lumbunglib-vid && \ OUTPUT_DIR=content/tv lumbunglib-vid && \
OUTPUT_DIR=content/feed lumbunglib-feed OUTPUT_DIR=content/shouts lumbunglib-feed
push-hugo: push-hugo:
@docker build -t decentral1se/beta.lumbung.space -f Dockerfile.hugo . && \ @docker build -t decentral1se/beta.lumbung.space -f Dockerfile.hugo . && \

View File

@ -48,9 +48,12 @@
<li><a href="/">home</a></li> <li><a href="/">home</a></li>
<li><a href="/about/">about</a></li> <li><a href="/about/">about</a></li>
<li><a href="/calendar/">calendar</a></li> <li><a href="/calendar/">calendar</a></li>
<li><a href="/video/">tv</a></li> <li><a href="/tv/">tv</a></li>
<li><a href="/hash/">socials</a></li> <li><a href="/social/">social</a></li>
<li><a href="/feed/">feeds</a></li> <li><a href="/pen/">pen</a></li>
<li><a href="/shouts/">shouts</a></li>
<li><a href="https://documenta-fifteen.de/en/news/">documenta news</a></li>
<li><a href="https://documenta-fifteen.de/en/newsletter/">documenta newsletter</a></li>
</ul> </ul>
</nav> </nav>