PWO:Billboard

From The Paper World
Jump to navigation Jump to search

This page is the official completed outline for the Paper World wiki. This page tracks all completed configuration items for the wiki. Completed items have been added from the PWO in the same format. Items within this list have been completed from the bottom, new items will be added to the top.

The Billboard

Major migration (Urgent)

PWW Release v0.0.2 - Completed Aug 11, 2025

'It has come to my attention that as a general rule of thumb, major system files should absolutely not be stored within the user home directory (/home/ubuntu/). So, we must restructure.'

~ d <3

Significant overhaul of the Paper World Wiki internal file structure.

  • Inventory & Plan: Inventory our current directory tree and setup and devise a new Linux FHS-friendly directory structure and strategy.
  • Plan/prepare new directories: Plan the optimal, future-proofed, and industry-standard directory structure and create target folders w/ correct ownership/perms. (Additionally ensure SELinux/AppArmor/other isn’t going to block access if enabled (rare in Docker, but worth noting)).
  • Safe move procedure: Copy directories and files into new locations, being sure to preserve permissions, being sure to preserve docker container contents.
  • File adjustment: Adjust filepaths accordingly, being sure all configs, scripts, and composer files reflect the new structure.
  • Testing & clean-up: Test everything to ensure everything is as it was before using the new infrastructure. After verifying, clean up user directory as possible.

Completion notes

  • Updated docker-compose.yml volume mounts to point to new persistent storage locations for MediaWiki images, logs, and cache.
  • Verified database container mounts correct persistent volume (ubuntu_db_data) containing live wiki data.
  • Confirmed MediaWiki and Nginx containers fully functional after migration with no data loss.
  • Cleaned up unneeded bind mounts (e.g., direct /usr/local/etc/php/conf.d override) to avoid masking upstream configs.
  • Validated file permissions/ownership on new directories to ensure container read/write access.

Additional changes

  • New repo: Created public GitHub repo at dikablink/paperworld-wiki and initialized project under /srv/paperworld-wiki.
  • Relocated all major system files from user home directory (/home/ubuntu/) to FHS-compliant locations under /srv/, /var/lib/, and /var/log/ for production safety and maintainability.

Core site & URLs

PWW Release v0.0.1 - Completed Aug 09, 2025

  • Short URLs: Currently using `/index.php/$1`. Decide if you want `/wiki/$1` article paths for cleaner links and better UX/SEO.
  • Canonical server: `$wgServer` is set to `https://wiki.anarkadia.net`; add `$wgCanonicalServer` to pin absolute URLs (helps SEO and proxies).
  • Robots policy: Set `$wgDefaultRobotPolicy`/namespace overrides; confirm what should/shouldn’t be indexed.

Completion notes

  • Set up short URL structure using /wiki/ for article paths and /w/ for script paths, with Nginx rewrite rules for clean, consistent page access.
  • Added HSTS (Strict-Transport-Security) for stronger HTTPS enforcement.
  • Updated Nginx config to proxy key static files (robots.txt, favicon.ico) directly.
  • Created a custom robots.txt that blocks crawler access to backend script paths (/w/) and restricted namespaces (User, Paper, File, MediaWiki, Template, Help, and all talk pages).
  • Verified that robots.txt serves correctly over HTTPS with proper MIME type and caching.
  • Confirmed pretty links resolve as expected, with /w/index.php?title= URLs still working but discouraged.

Additional changes

  • Applied performance-oriented Nginx tweaks (timeouts, buffering) for better handling of large file uploads and exports.