No description
  • JavaScript 55%
  • Python 25.8%
  • HTML 11.9%
  • CSS 7.1%
  • Dockerfile 0.2%
Find a file
Lain Iwakura 3fdd19a0b6
All checks were successful
docker-publish / build-and-push (push) Successful in 10s
idk
2025-11-09 12:56:27 +03:00
.forgejo/workflows nah 2025-11-09 04:12:51 +03:00
.gitignore meow 2025-11-09 04:10:14 +03:00
api.js shitty optimisation 2025-11-09 12:50:52 +03:00
board.html shitty optimisation 2025-11-09 12:50:52 +03:00
board.js shitty optimisation 2025-11-09 12:50:52 +03:00
config.js iforgor2 2025-11-09 04:32:22 +03:00
docker-compose.yml meow 2025-11-09 04:10:14 +03:00
Dockerfile meow 2025-11-09 04:10:14 +03:00
index.html idk 2025-11-09 12:56:27 +03:00
index.js whoopsie 2025-11-09 04:46:31 +03:00
proxy.py shitty optimisation 2025-11-09 12:50:52 +03:00
README meow 2025-11-09 04:10:14 +03:00
settings.js shitty optimisation 2025-11-09 12:50:52 +03:00
style.css meow 2025-11-09 04:10:14 +03:00
thread.html shitty optimisation 2025-11-09 12:50:52 +03:00
thread.js shitty optimisation 2025-11-09 12:50:52 +03:00

legacymkch - legacy frontend for mkch

Simple HTML/CSS/JS frontend for Symbian browsers and other legacy environments.

Files:
- index.html - main page with boards list
- board.html - threads list for a board
- thread.html - thread view with comments
- style.css - styles
- config.js - configuration (API endpoint)
- api.js - API client functions
- index.js, board.js, thread.js - page logic
- settings.js - settings management (cookies, localStorage, debug mode)
- proxy.py - CORS proxy server

Setup:
1. Start mkch backend server
2. Start proxy server
3. Open http://localhost:8888 (or http://YOUR_IP:8888 for remote access) in browser
4. Go to Settings and configure:
   - API Base URL (auto-detected from current hostname)
   - Source Key - enter your key and click "Calculate" to calculate auth_key
   - Auth Key (sha256 hash, calculated automatically or enter manually)
   - Session ID (auto-generated if empty, or enter manually)
   - CSRF Token (from cookies after visiting /key/auth/)
   - Debug mode - enable to send browser console logs to proxy server (best secutiy solution 2025!!! /j)

Server (proxy.py):
- Runs on port 8888 by default
- Serves static files (HTML, CSS, JS) from current directory
- Proxies API requests (/api/*, /key/*) to http://127.0.0.1:8000
- Handles /sha256 endpoint for SHA256 calculation
- Handles /debuglog endpoint for debug logging
- Adds CORS headers to bypass browser restrictions
- Adds X-Forwarded-For header to preserve client IP
- Edit API_BASE in proxy.py to change target server

Requirements:
- Python 3
- Browser with XMLHttpRequest support (ES5 compatible)
- mkch server running on port 8000