From a776f7199e185d52d45fbdb8ee96a551b262b6f4 Mon Sep 17 00:00:00 2001 From: Kay Faraday Date: Thu, 8 Aug 2024 13:59:37 -0700 Subject: [PATCH] use tor links when accessed over tor --- .gitignore | 3 +-- Makefile | 12 +++++++++--- index.j2.html | 26 +++++++++++++++++++------- 3 files changed, 29 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index f62091b..d163863 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -*.html -!*.j2.html +build/ \ No newline at end of file diff --git a/Makefile b/Makefile index 37584d4..733a7e6 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,15 @@ PAGES = index.html rules.html donate.html -all: $(PAGES) +all: $(PAGES) symlinks + +symlinks: + ln -sf ../../static build/tor/ + ln -sf ../../static build/clearnet/ clean: - rm $(PAGES) + rm -f $(addprefix build/tor/,$(PAGES)) + rm -f $(addprefix build/clearnet/,$(PAGES)) %.html: %.j2.html base.j2.html - j2 $< > $@ + j2 -D site tor $< > build/tor/$@ + j2 -D site clearnet $< > build/clearnet/$@ diff --git a/index.j2.html b/index.j2.html index ef9fdf5..0a9d449 100644 --- a/index.j2.html +++ b/index.j2.html @@ -5,16 +5,28 @@ {# the home page does not need a link back to home #} {% block header %}{% endblock header %} + +root@freak.university ~ [1]# cat /var/lib/tor/hidden_services/mural/hostname +muralfu7fod6lmkff3suou4ipkqan35hdirn4ejzm5lpp7y4nqxbm3ad.onion +root@freak.university ~# cat /var/lib/tor/hidden_services/badge/hostname +badgefulkavesk2jeeooav3tvabd63hk5tj25h75ckmsnossulox6gad.onion +root@freak.university ~# cat /var/lib/tor/hidden_services/emojos/hostname +emojosjty2mdo6ed3yq7eul7u3eb7hpqv7ud424xg2arturqdsrnkyqd.onion +root@freak.university ~# cat /var/lib/tor/hidden_services/takahe/hostname +tkhfu4xpnadqzzdc4cdxd7a7zn2neyeihwz425z3xaac2mzvcx65ewad.onion + + {% block content %}

Welcome to Freak University! There used to be a public fediverse instance here, but not anymore. However, we are working on restoring some of the affiliated services, and those restored are listed below. Please read the rules before using any of these services.

Planned services

None at the moment.