Deploying Redlib
Introduction
Redlib is a private, lightweight Reddit frontend that allows you to browse Reddit without tracking, advertisements, or JavaScript. As a spiritual successor to Libreddit, Redlib provides a clean, fast interface for reading Reddit content while respecting your privacy.
Key features of Redlib include:
- Privacy First: No tracking, ads, or JavaScript required
- Fast Performance: Lightweight and responsive
- Clean Interface: Distraction-free reading experience
- No Reddit Account Needed: Browse without logging in
- Subreddit Support: Access all public subreddits
- User Pages: View user profiles and history
- Comment Threads: Full discussion support
- Dark Mode: Built-in theme options
- Search: Search Reddit content
- RSS Feeds: Generate feeds for subreddits
This guide walks through deploying Redlib on Klutch.sh using Docker and setting up your private Reddit frontend.
Prerequisites
Before deploying Redlib on Klutch.sh, ensure you have:
- A Klutch.sh account
- A GitHub account with a repository for your Redlib configuration
- Basic familiarity with Docker
Deploying Redlib on Klutch.sh
- Select HTTP as the traffic type
- Set the internal port to 8080
Create Your Dockerfile
Create a Dockerfile in your repository:
FROM quay.io/redlib/redlib:latest
# Environment configurationENV REDLIB_DEFAULT_THEME=darkENV REDLIB_DEFAULT_FRONT_PAGE=popularENV REDLIB_DEFAULT_LAYOUT=cardENV REDLIB_DEFAULT_SHOW_NSFW=off
# Expose the web interfaceEXPOSE 8080Push Your Repository to GitHub
Commit and push your Dockerfile to your GitHub repository.
Create a New Project on Klutch.sh
Navigate to the Klutch.sh dashboard and create a new project named “redlib”.
Create a New App
Create a new app within your project and connect your GitHub repository.
Configure HTTP Traffic
In the deployment settings:
Set Environment Variables
Configure the following environment variables:
| Variable | Value |
|---|---|
REDLIB_DEFAULT_THEME | dark or light |
REDLIB_DEFAULT_FRONT_PAGE | popular, all, or subreddit name |
REDLIB_DEFAULT_LAYOUT | card, clean, or compact |
REDLIB_DEFAULT_SHOW_NSFW | on or off |
REDLIB_ROBOTS_DISABLE_INDEXING | on (recommended) |
Deploy Your Application
Click Deploy to build and start your Redlib instance.
Access Redlib
Once deployment completes, access your instance at https://your-app-name.klutch.sh.
Using Redlib
Browsing Reddit
Access subreddits by adding the subreddit name to your URL:
- Homepage:
https://your-app-name.klutch.sh - Subreddit:
https://your-app-name.klutch.sh/r/subreddit - User:
https://your-app-name.klutch.sh/user/username - Post:
https://your-app-name.klutch.sh/r/subreddit/comments/...
Browser Extension
Redirect Reddit links automatically:
- Install a redirect extension like “Redirector”
- Add a rule to redirect
reddit.comto your Redlib instance - All Reddit links now open in Redlib
RSS Feeds
Generate RSS feeds for subreddits:
- Add
.rssto any subreddit URL - Example:
https://your-app-name.klutch.sh/r/technology.rss
Customization
User Preferences
Set preferences via URL parameters or cookies:
- Theme:
?theme=darkor?theme=light - Layout:
?layout=cardor?layout=compact - NSFW:
?show_nsfw=onor?show_nsfw=off
Additional Resources
Conclusion
Deploying Redlib on Klutch.sh provides a privacy-focused Reddit frontend with automatic builds and secure HTTPS access. Browse Reddit content without tracking, ads, or JavaScript while maintaining complete control over your browsing experience.