From 2faa1fede9cfe79e2bc93e3e5e2444e4f54cb32b Mon Sep 17 00:00:00 2001 From: Ahmed Date: Wed, 17 Jun 2026 15:45:51 +0300 Subject: fix: style, docs, and few routes --- _shared/style.css | 1 - files.gumx.cc/body.html | 3 +- files.gumx.cc/upload.html | 83 +++++++++++++++++++++++++++++++++++++++++++++++ hooks/post-receive | 8 +++-- irc.gumx.cc/body.html | 2 +- wk.fo/body.html | 8 ++--- wk.fo/pks/index.html | 3 +- wk.fo/upload.html | 83 +++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 180 insertions(+), 11 deletions(-) create mode 100644 files.gumx.cc/upload.html create mode 100644 wk.fo/upload.html diff --git a/_shared/style.css b/_shared/style.css index 0f7e7cf..3efbeb1 100644 --- a/_shared/style.css +++ b/_shared/style.css @@ -16,7 +16,6 @@ code { font-size: 85%; } hr { border: none; border-top: thin solid; margin: 1.25rem 0; } header { margin-bottom: 1em; } footer { margin-top: 3em; } -a { color: inherit; } @media (max-width: 600px) { body { font-size: 0.9em; } h1 { font-size: 1.8em; } } @media (max-width: 400px) { body { font-size: 0.8em; } h1 { font-size: 1.6em; } } @media (prefers-color-scheme: dark) { html { filter: invert(1); } img { filter: invert(1); } } diff --git a/files.gumx.cc/body.html b/files.gumx.cc/body.html index 3c34353..19e0bff 100644 --- a/files.gumx.cc/body.html +++ b/files.gumx.cc/body.html @@ -1,6 +1,7 @@

File hosting via 0x0. Uploads require a token.

upload

-
curl -F "file=@photo.jpg" -H "Authorization: YOUR_TOKEN" https://files.gumx.cc/
+

Use the web form or curl:

+
curl -F "file=@photo.jpg" -H "Authorization: Bearer YOUR_TOKEN" https://files.gumx.cc/

Files expire after 24 hours by default. Max 256 MB.

access

Contact hi@gumx.cc to request a token.

diff --git a/files.gumx.cc/upload.html b/files.gumx.cc/upload.html new file mode 100644 index 0000000..e82bd96 --- /dev/null +++ b/files.gumx.cc/upload.html @@ -0,0 +1,83 @@ + + + + + + +files.gumx.cc / upload + + + +
+

gumx / files / upload

+
+
+

Upload a file using your token. Files expire after 24 hours by default. Max 256 MB.

+

web form

+

+

+

+

+

curl

+
curl -F "file=@photo.jpg" -H "Authorization: Bearer YOUR_TOKEN" https://files.gumx.cc/
+
+ + + + diff --git a/hooks/post-receive b/hooks/post-receive index 3ecfd11..fe4f5f6 100644 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -1,5 +1,6 @@ #!/bin/sh set -e +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin WORK=/home/git/build/sites @@ -33,8 +34,11 @@ for SITE in irc.gumx.cc vpn.gumx.cc mail.gumx.cc pgp.gumx.cc wk.fo twt.gumx.cc f fi done +chmod +x /var/www/wk.fo/pks/cgi-bin/pgp-hkp.sh || true +chmod +x /var/www/pgp.gumx.cc/cgi-bin/pgp-hkp.sh || true + # 404 page for sites outside this hook -cp _shared/404.html /var/www/gumx.cc/404.html -cp _shared/404.html /usr/share/webapps/cgit/404.html +cp _shared/404.html /var/www/gumx.cc/404.html || true +cp _shared/404.html /usr/share/webapps/cgit/404.html || true echo "sites deployed" diff --git a/irc.gumx.cc/body.html b/irc.gumx.cc/body.html index 48440ca..0ddcf72 100644 --- a/irc.gumx.cc/body.html +++ b/irc.gumx.cc/body.html @@ -1,6 +1,6 @@

Personal IRC server running ngircd, fronted by a Soju bouncer. Access is by invitation.

web client

-

open gamja — no account needed. Connect with any nick.

+

open gamja — requires a soju account. Use your IRC credentials.

connect via IRC client

diff --git a/wk.fo/body.html b/wk.fo/body.html index 158927c..ac05efb 100644 --- a/wk.fo/body.html +++ b/wk.fo/body.html @@ -1,16 +1,16 @@

File sharing, IRC, VPN, and tools for friends. Invite required for most services.

file sharing

-

Upload via HTTPS (token required):

-
curl -F "file=@photo.jpg" -H "Authorization: YOUR_TOKEN" https://wk.fo/
+

Upload via the web form or curl (token required):

+
curl -F "file=@photo.jpg" -H "Authorization: Bearer YOUR_TOKEN" https://wk.fo/

Files expire after 24 hours by default (max 48h with expires param). Max 256 MB.

irc

-

web client — no account needed. Or connect directly:

+

web client — requires a soju account. Or connect directly:

serverirc.gumx.cc:6697 (TLS)
serverwk.fo:6697 (TLS)
authSASL PLAIN (invite only)

pgp

-

Curated keyserver — keys added after in-person verification. search or browse.

+

Curated keyserver — keys added after in-person verification. search or browse.

vpn

diff --git a/wk.fo/pks/index.html b/wk.fo/pks/index.html index 2847b9f..727a6f2 100644 --- a/wk.fo/pks/index.html +++ b/wk.fo/pks/index.html @@ -21,7 +21,6 @@ code { font-size: 85%; } hr { border: none; border-top: thin solid; margin: 1.25rem 0; } header { margin-bottom: 1em; } footer { margin-top: 3em; } -a { color: inherit; } input[type="text"], button { font-family: inherit; font-size: inherit; border: thin solid; padding: 0.3em 0.6em; background: transparent; color: inherit; } button { cursor: pointer; } @media (max-width: 600px) { body { font-size: 0.9em; } h1 { font-size: 1.8em; } } @@ -53,7 +52,7 @@ button { cursor: pointer; } irc / files / vpn / -pgp / +pgp / demo / wk.fo diff --git a/wk.fo/upload.html b/wk.fo/upload.html new file mode 100644 index 0000000..6578afd --- /dev/null +++ b/wk.fo/upload.html @@ -0,0 +1,83 @@ + + + + + + +wk.fo / upload + + + +
+

wk.fo / upload

+
+
+

Upload a file using your token. Files expire after 24 hours by default. Max 256 MB.

+

web form

+

+

+

+

+

curl

+
curl -F "file=@photo.jpg" -H "Authorization: Bearer YOUR_TOKEN" https://wk.fo/
+
+ + + + -- cgit v1.2.3
serverwk.fo:51820 (UDP)