GearFeed Logs
-
================================================================================
GEARFEED DAILY CHANGE LOG & SESSION SUMMARY
Date: October 23, 2026
Domain: gearfeed.org
Container: app-app-1
Build Path: /opt/app/gearfeed-build/
================================================================================
- OVERVIEW
Configured and styled dynamic community photo background cards (featureCards)
on the GearFeed landing page. Corrected heading link colors, balanced dark
gradient scrim overlays for photo visibility, and resolved asset caching and
PHP-FPM OPcache hurdles.
- BACKEND: HASHTAG PHOTO QUERIES
File: /var/www/app/Services/LandingService.php
Added dynamic 'featureCards' payload to LandingService::get() querying public,
local posts containing media that match target hashtags, with fallback to
random media posts:
-
01 / FIELD NOTES:
Hashtags: #fieldnotes, #pocketdump, #inuse, #notes
-
02 / GEAR:
Hashtags: #gear, #edc, #knife, #multitool, #everydaycarry
-
03 / BUILDS & MODS:
Hashtags: #mods, #modding, #custom, #builds, #workbench
-
04 / COMMUNITY:
Hashtags: #community, #edctv, #gearfeed, #camp, #outdoors
- FRONTEND: BLADE TEMPLATE & CACHE BUSTING
File: /var/www/resources/views/site/index.blade.php
Synced Host: /opt/app/gearfeed-build/resources/views/site/index.blade.php
-
Fixed Laravel 500 error caused by arithmetic operand conflict on mix() return:
"Unsupported operand types: Illuminate\Support\HtmlString + string"
-
Resolved by placing cache busters outside the Blade mix function:
{{ mix('css/landing.css') }}?v=<timestamp>
{{ mix('js/landing.js') }}?v=<timestamp>
-
Maintained window.pfl = {!! App\Services\LandingService::get() !!} payload.
- CSS & PRESENTATION UPDATES
Source File: /opt/app/gearfeed-build/resources/assets/sass/landing.scss
Compiled Target: /var/www/public/css/landing.css (via landing-combined.css)
-
Reduced dark overlay opacity to allow photos to show through vibrantly:
Linear gradient from rgba(6, 8, 10, 0.58) down to 0.28.
-
Forced heading color on a.gf-feature to solid #ffffff with text-shadow drop.
-
Styled numbers (.gf-number) in cyan (#65e6df) with tracking.
-
Set descriptive text to readable off-white (#e5eceb).
-
Polished hover effects: subtle card lift (translateY -3px), cyan border
glow, and background photo zoom/saturation boost.
- SERVER CACHE PURGING PROCEDURES
To reload code changes when modifying views or backend services:
-
Reload PHP-FPM Master to invalidate OPcache:
docker exec -it app-app-1 kill -USR2 201
-
Clear Laravel view and route caches:
docker exec -it app-app-1 php artisan view:clear
docker exec -it app-app-1 php artisan route:clear
-
Asset compile & bundle command:
docker run --rm -v /opt/app/gearfeed-build:/var/www -w /var/www node:20 sh -lc 'npx webpack --config gearfeed.webpack.js'
cat /opt/app/gearfeed-build/public/css/landing.css /opt/app/gearfeed-build/public/css/landing-css.css > /opt/app/gearfeed-build/public/css/landing-combined.css
docker cp /opt/app/gearfeed-build/public/css/landing-combined.css app-app-1:/var/www/public/css/landing.css
================================================================================
STATUS: Locked in and deployed live on https://gearfeed.org/
================================================================================
-
================================================================================
SYSTEM LOG: GearFeed.org (Pixelfed Custom Landing Page & Proxy Hardening)
DATE: October 2026
ENVIRONMENT: Elestio / Hetzner Cloud (Docker, Pixelfed, PHP 8.2+, Nginx)OBJECTIVE:
Resolve fatal 0-byte proxy errors on root domain and build a robust, zero-JS
custom landing page showcasing live federation media and network assets.ROOT CAUSE INVESTIGATION:
- Empty HTTP 200 Responses:
- PHP 8.2+ strict typing triggered a fatal TypeError inside Symfony's
IpUtils::checkIp4() due to uninitialized trusted proxies behind Elestio's
reverse proxy architecture.
- PHP 8.2+ strict typing triggered a fatal TypeError inside Symfony's
- View Caching & Stale OPcache:
- PHP-FPM process pools retained cached view bytecode in memory across file
edits until a full container process restart and storage view purge.
- PHP-FPM process pools retained cached view bytecode in memory across file
WORK COMPLETED:
-
Core Middleware & Proxy Hardening:
- Added TRUSTED_PROXIES="*" to persistent /opt/app/.env.
- Patched App\Http\Middleware\TrustProxies ($proxies = "*") to resolve
reverse-proxy client IP resolution cleanly. - Backed up patched TrustProxies.php to host persistent storage.
-
Custom Landing Page View (Zero-JS Blade):
- Created persistent bind-mount at /opt/app/custom-views/index.blade.php
mapped to /var/www/resources/views/site/index.blade.php. - Implemented responsive, uncropped full-width hero graphic preserving
upper branding and bottom category icons. - Built server-rendered 6-post live photo gallery querying unique public
statuses with deduplicated media and hover username tags. - Integrated 2x2 graphical banner grid linking Multitool.org, SAKWiki,
SAKSelector, and EDC-TV with lift-on-hover effects. - Refined two-column community section ("A Better Home for Gear" mission
pitch paired with "Community Standards").
- Created persistent bind-mount at /opt/app/custom-views/index.blade.php
STATUS:
- Landing page fully active over HTTPS (HTTP 200, 219+ lines parsed).
- Completely decoupled from fragile Vue SPA compilation and Node build scripts.
- Upgrades and container reboots preserved via persistent bind mounts.
================================================================================
- Empty HTTP 200 Responses:
-
================================================================================
SYSTEM AUDIT & HARDENING LOG: GEARFEED.ORG (PIXELFED / LARAVEL)
Date: October 27, 2026
Host / Container: pixelfed-xagxw-u73921 / app-app-1
Hardware: Netcup 4 vCPU / 8 GB RAM / 100 GB SSD (Nuremberg, DE)
================================================================================
- INCIDENT & OBJECTIVE
-
Purpose: Network-wide pre-migration hardening and audit of GearFeed to
ensure complete container recreation persistence, anti-spam protections,
and media upload scalability (accommodating 15-second video uploads).
-
Primary Risk Identified: Compiled custom landing assets (landing.css,
landing.js) were residing solely inside ephemeral container directories
(/var/www/public/), making them vulnerable to destruction on any future
automated Docker image pull, Elestio update, or container rebuild.
- AUDIT FINDINGS
[PASS] Reverse Proxy Stability:
- TRUSTED_PROXIES="*" confirmed in /opt/app/.env. - Prevents Symfony IpUtils::checkIp4() 0-byte header parse crashes.[PASS] Anti-Spam / Abuse Gate:
- OPEN_REGISTRATION=false active. - PF_BOUNCER_ENABLED=true active. - PF_BOUNCER_BAN_CLOUD_SIGNUPS=true active (blocks automated cloud ASN registration attempts).[PASS] Persistent Core Storage:
- Host directory /opt/app/storage/app-storage successfully mapped to /var/www/storage. All local uploads, media, and avatars persist on SSD. - Host directory /opt/app/custom-views/index.blade.php cleanly mapped to /var/www/resources/views/site/index.blade.php.[FAIL -> RESOLVED] Ephemeral Landing Page Asset Vulnerability:
- /var/www/public/css/landing.css (336 KB) and landing.js (212 KB) existed in container storage with no host mount in docker-compose.yml.- HARDENING ACTIONS PERFORMED
A. Landing Page Asset Host Backup & Bind-Mounting:
-
Created host backup target: /opt/app/gearfeed-build/public/{css,js}
-
Extracted running production assets:
docker cp app-app-1:/var/www/public/css/landing.css \
/opt/app/gearfeed-build/public/css/landing.cssdocker cp app-app-1:/var/www/public/js/landing.js \
/opt/app/gearfeed-build/public/js/landing.js -
Updated /opt/app/docker-compose.yml to bind-mount host assets permanently:
-
./gearfeed-build/public/css/landing.css:/var/www/public/css/landing.css
-
./gearfeed-build/public/js/landing.js:/var/www/public/js/landing.js
-
-
Recreated container via 'docker compose up -d app'.
-
Verified active container inspection shows persistent mounts bound.
B. Video Duration & Upload Ceiling Expansion:
-
Configured video parameters to allow 15-second clip imports (replacing
previous 10-second ceiling) and raised memory/payload ceilings to 64 MB:
MAX_VIDEO_LENGTH=15
MAX_VIDEO_SIZE=65536
PF_MAX_VIDEO_SIZE=65536
-
Flushed framework caches to register environment changes immediately:
docker exec app-app-1 php artisan config:clear
docker exec app-app-1 php artisan cache:clear
- STORAGE & ARCHITECTURAL VERIFICATION
-
Disk Capacity Analysis:
-
100 GB SSD with ~85+ GB dedicated free storage.
-
GearFeed operates primarily as an internal gallery / community media
vault feeding NodeBB, with minimal external Fediverse inbound follow bloat.
-
Outbound ActivityPub federation handles 15s clips well below the
standard 60s/100MB thresholds enforced by Mastodon/Misskey.
-
Confirmed built-in 'media:prune-remote' selectively deletes foreign
cached assets only, completely safeguarding local user uploads.
-
- NETWORK & ENDPOINT HEALTH CHECKS
-
Bridge HTTP Check (172.17.0.1:8686): HTTP 200 OK
-
Public HTTPS Check (https://gearfeed.org/
HTTP 200 OK -
Persistence Status: Container pull/rebuild immune.
================================================================================
END OF LOG - GEARFEED.ORG HARDENING COMPLETE
================================================================================
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login