About Open Relay Portal
A complete guide to using Open Relay Portal — a privacy-first, self-hosted streaming and community platform, with the tools to run it.
Overview
Open Relay Portal is a privacy-first, self-hosted streaming and community platform. It runs on a server you control and gives your community live streams with recordings and a schedule, chat, voice and notifications, with moderation tools. The same server also gives you the tools to run it: browser-based remote access (SSH, VNC and more), file management and a proxy for your other services. Chat, the dashboard and the admin pages need a sign-in; the sign-in, About, Guides, API docs and live pages, and a stream whose owner allows unauthenticated access, do not. Chat is encrypted at rest but not end-to-end, so the server’s administrator can read it.
View on GitHub — Open Source (AGPL-3.0)
Live Streaming
Broadcast live via RTMPS or plain RTMP (with temporary tokens) from OBS or any encoder. Members watch with HLS playback, streams are recorded as VODs to your own storage, and a stream is private unless you make it public.
Community Chat
Real-time messaging with channels, voice rooms, emoji, markdown, @mentions, replies, image sharing and moderation tools. Messages are encrypted at rest on your server.
Secure by Default
HTTPS-only with HSTS, chat encrypted at rest, Argon2id passwords, TOTP 2FA, role-based access control, and no analytics or tracking code.
Remote Access (the tools to run it)
Connect to SSH, VNC, SPICE, and Proxmox servers through your browser. HTTP/HTTPS connections open in Portal's embedded browser with tabbed browsing, multi-site navigation, address bar, and TLS enforcement. A default Web Browser connection is created for all users. No client software needed.
Roles & Permissions
Access is controlled by a role hierarchy. Higher roles inherit all permissions from lower roles.
| Role | Capabilities |
|---|---|
| User | Create connections, stream, chat, manage SSH/API keys, view community streams |
| Moderator | Delete chat messages, ban users from stream chat |
| Admin | Manage services, view all users, access server terminal, traffic metrics, logs, vulnerability scanner |
| Superadmin | Change user roles, manage system configuration, full system access |
- Daily — Auto-rotating code that expires at midnight UTC each day. Unlimited uses.
- Single-Use — One-time code for inviting a specific person. Invalidated after first use. Optional expiry (1–365 days).
- Timed — Reusable code that stays active for a set duration (1–365 days). Unlimited uses until it expires.
Dashboard
The Dashboard is your home screen after login. It shows live stats and provides quick access to all features.
Stats Overview
The top of the dashboard shows real-time statistics:
- Live Streams — Number of currently broadcasting streams
- Online Users — Users currently connected to the portal
- Total Services — Number of configured services (admin only)
- Active Services — Running managed processes (admin only)
Stats auto-refresh every 30 seconds.
Dashboard Tabs
| Tab | Description | Visibility |
|---|---|---|
| Services | Proxy routes and managed processes. Start, stop, restart services. View health status. | ADMIN |
| My Connections | Your personal remote connections. Includes a Quick Add bar with preset buttons (SSH, VNC, MySQL, PostgreSQL, Proxmox, HTTP Proxy). Create, edit, connect, and delete connections. | All users |
| My Streams | Manage your streaming configuration, stream keys, and broadcast settings. | All users |
| My VODs | Browse, search, download, and manage recorded stream archives on remote SFTP storage. | All users |
| Quick Access | Bookmarked connections and services for fast one-click access. | All users |
Activity Feed
The sidebar shows recent portal activity (stream events, user logins, etc.) with live-updating timestamps and fade effects for older entries.
Quick Actions
The sidebar includes Quick Actions for fast access to common tasks:
- Refresh Resources — One-click refresh of all dashboard data: connections, streams, stats, and services
- File Manager — Quick link to the Remote Files (SFTP) interface for browsing files on your remote servers
The Administration section (admin only) provides links to Manage Users, Invite Code, View Logs, and the Admin Panel.
User Connections
Connections are personal remote access points to your servers, databases, and network services. Each user manages their own connections independently.
Creating a Connection
From the My Connections tab, use the Quick Add bar to create a connection from a preset (SSH, VNC, MySQL, PostgreSQL, Proxmox, HTTP Proxy), or click Add Connection to fill in:
- Name — A descriptive label (e.g., "Home Server SSH")
- Type — The protocol to use (see table below)
- Host — IP address or hostname of the target
- Port — Service port (defaults vary by type)
- Username — Login username (for SSH/VNC connections)
- Auth Method — Password or SSH key (for SSH connections)
When you select a preset, documentation links appear below the dropdown — one linking to the software's official documentation and one linking to the Portal Setup Guide for that connection type.
Web UI connections (HTTP Proxy, Home Assistant, Grafana, Plex, and 40+ other types) open in Portal's embedded browser with tabbed browsing, multi-site navigation, and full navigation controls (back/forward, address bar, refresh). Browser-mode connections can navigate to any website through the proxy. Each user gets a default "Web Browser" connection (also on the connection form as the Web Browser (private search) preset) whose home page is Portal's own private search (SearXNG) when enabled, or DuckDuckGo otherwise — from there, clicking a result opens a new tab inside the embedded browser for multi-site connections, or a real browser tab otherwise. The embedded browser tracks your session and returns to the login page if you log out. A web connection that is shared with you, and every page of a browser-mode connection, opens in an isolated sandbox that cannot act as you in Portal (you are asked once before a shared connection first opens). Pages of an administrator's connection (not in browser mode), of a connection the viewer owns and of one a superadmin marked trusted run on Portal's own address with the viewer's session, so proxy only applications you trust. All traffic is reverse-proxied through Portal, so remote web interfaces are never exposed directly. Connection IDs use opaque tokens for security. The embedded browser's address bar is a convenience, not a security indicator: Portal marks an address it could not confirm in two cases (a page that reports an address on another site than the one the portal requested, and a page that does not answer the portal (an image, plain text, a file, or a page that stops the portal's script)), but a hostile page may still find a way to show a wrong address, so check a site's identity by opening it in a real browser tab before entering a password. Your browser reaches Portal over HTTPS only; the connection from Portal to a remote web interface uses the address you configured.
Connection Types
Open Relay Portal supports 75 connection types out of the box, covering remote access, web panels, databases, media servers, dev tools, monitoring, automation, file/photo management, security, and networking. The most common types are listed below — see the Guides page for detailed setup instructions for each connection type.
Remote Access
| Type | Description | Port | Viewer |
|---|---|---|---|
ssh | Secure Shell terminal | 22 | xterm.js terminal |
vnc | Virtual Network Computing | 5900 | noVNC viewer |
rdp | Desktop (VNC protocol); the key is historical, Windows Remote Desktop (RDP) is not supported | 5900 | noVNC viewer |
spice | SPICE remote display | 5930 | SPICE console |
telnet | Telnet (legacy devices) | 23 | TCP tunnel |
sftp | SFTP file transfer | 22 | SFTP browser |
Web Panels
| Type | Description | Port | Viewer |
|---|---|---|---|
proxmox | Proxmox VE management | 8006 | Proxmox panel |
home_assistant | Home Assistant | 8123 | Embedded browser |
portainer | Portainer (Docker management) | 9443 | Embedded browser |
truenas | TrueNAS storage management | 443 | Embedded browser |
pfsense | pfSense firewall | 443 | Embedded browser |
http / https | Generic web service | 80 / 443 | Embedded browser |
Databases
| Type | Description | Port | Viewer |
|---|---|---|---|
database | MySQL / PostgreSQL | 3306 / 5432 | TCP tunnel |
redis | Redis data store | 6379 | TCP tunnel |
mongodb | MongoDB | 27017 | TCP tunnel |
elasticsearch | Elasticsearch | 9200 | TCP tunnel |
Dev Tools & Monitoring
| Type | Description | Port | Viewer |
|---|---|---|---|
jupyter | Jupyter Notebook | 8888 | Embedded browser |
grafana | Grafana dashboards | 3000 | Embedded browser |
prometheus | Prometheus metrics | 9090 | Embedded browser |
github | GitHub integration | 443 | GitHub browser |
Media & Game Servers
| Type | Description | Port | Viewer |
|---|---|---|---|
mediamtx | MediaMTX streaming server | 8554 | Media player |
stream | Generic media stream (RTSP) | — | Media player |
minecraft_rcon | Minecraft RCON | 25575 | TCP tunnel |
Network & Tunneling
| Type | Description | Port | Viewer |
|---|---|---|---|
tcp_tunnel | Generic TCP forwarding | — | TCP tunnel |
secure_tunnel | TLS-encrypted tunnel | — | Encrypted tunnel |
vpn_tunnel | VPN bridge | — | VPN tunnel |
custom | Custom protocol | — | TCP tunnel |
Connecting
Click the Connect button on any connection to open the appropriate viewer in a new window. For SSH connections, you will be prompted for credentials (password or key-based authentication).
For HTTP/HTTPS connections (web panels, dev tools, and other web services), the connection opens in Portal's embedded browser with navigation controls (back, forward, refresh), an address bar showing the proxied path, and TLS enforcement for secure communication with the backend service.
For tunnel-type connections (database, redis, tcp_tunnel), the portal displays the host and port information for use with your local client software.
Pinning & Usage Tracking
Connections track usage automatically:
- Pin Connections — Click the pin icon to keep frequently used connections at the top of your list
- Usage Stats — Each connection shows when it was last used and total connection count
- Smart Sorting — Pinned connections appear first, then sorted by most recently used
Web Browser (on the server)
If an administrator has switched it on and your role allows it, the dashboard shows a card Web Browser (on this server) and /rbrowser opens a real browser that runs on the portal's server and reaches you as a picture. Use it for sites the embedded browser cannot handle. It is optional and off by default; the embedded browser above is unchanged.
- What it does not do — no downloads, uploads, sound, printing, camera, microphone, extensions, Chromium account or password manager, and no page fullscreen. Text goes in as typed keys (the Text button types a block of up to 5000 characters; dead keys do not compose); text comes out only through Copy from the browser, where an administrator allows it.
- Sessions — one per member, a few seats in all. A session ends when you end it, after the idle minutes, 5 minutes after the last window left, after 4 hours, when you sign out, or when an administrator ends it, switches the feature off or the portal restarts. The browser profile is thrown away every time.
- Limits — the picture is a video: expect latency, and about 8 frames a second when scrolling text. A blocked destination (the server's own services, local networks) times out. At very small window sizes a page's drop-down list can touch the toolbar area, so the address bar in the picture is not a security indicator.
localhost, 127.0.0.1, and ::1 are blocked for security. Only connections to remote hosts are allowed.
Streaming
Open Relay Portal includes a full live streaming platform. Broadcast from OBS or any RTMP-capable encoder via secure RTMPS or standard RTMP with temporary publish tokens. Viewers can watch via the community Streams page.
Setting Up OBS
In OBS Studio, go to Settings → Stream and configure:
# Option 1: RTMPS (recommended, encrypted) Service: Custom Server: rtmps://stream.yourdomain.com:1936/live Stream Key: live_xxxxxxxxxxxx (your private stream key) # Option 2: Plain RTMP (temporary token, enable RTMP on stream first) Service: Custom Server: rtmp://stream.yourdomain.com:1935/live Stream Key: rtmp_xxxxxxxxxxxx (generate from My Streams tab)
Stream Keys
Each user has two permanent stream keys and can generate temporary RTMP tokens:
| Key Type | Prefix | Purpose |
|---|---|---|
| Private Key | live_ |
Used in OBS to publish your stream via RTMPS. Keep this secret. |
| Public Key | pub_ |
Used for sharing stream links. Viewers use this to watch. |
| RTMP Token | rtmp_ |
Temporary publish token for plain RTMP. Single-use, expires after 15 minutes (30-second grace period once connected). |
Manage your stream keys and generate RTMP tokens from the My Streams tab on the Dashboard.
A stream key authorises publishing only: it signs in nowhere on the portal, and a request that offers one as its credential is refused. Anything other than publishing needs your login; scripts use a bearer token from /api/token, or for administrators an API key with the * scope.
Streaming Features
- Dual Publishing — Publish via secure RTMPS (port 1936) or standard RTMP (port 1935) with temporary tokens
- Dynamic Thumbnails — Auto-generated preview images from your live stream, updated every 15 seconds
- Viewer Count — The number of signed-in members and open-link players whose player passed the portal's playback check lately, shown on cards and the stream page and refreshed every 15 seconds. One account counts once; somebody reading straight from the RTMPS or RTSP port is not counted. The owner also sees the peak and the number of different viewers of the last live session.
- Game — An optional game of up to 60 characters shown next to the title, with suggestions; changing the title or game while live updates open watch pages at once
- Quality Selector — Viewers can choose stream quality when available
- Public/Private Toggle — Control whether your stream appears on the community Streams page
- Popout Player — Watch streams in a floating overlay or separate window
- Stream Lifecycle — Live → Encoding → Offline: streams transition through an encoding state while VOD chunks are finalized and offloaded to SFTP, ensuring no recorded data is lost
- Standard RTMP with Temporary Tokens — Generate single-use publish tokens for plain RTMP when TLS is not available
- Multi-Platform Relay — Simultaneously relay your stream to Twitch, YouTube, Kick, other Portal instances, or any custom RTMP destination. Up to 10 relay targets per stream, with credentials encrypted at rest
Encoder Support
| Encoder | Type | Notes |
|---|---|---|
| NVENC | NVIDIA GPU | Best performance. Requires NVIDIA GPU with encoding support. |
| AMF | AMD GPU | Hardware encoding for AMD GPUs. |
| x264 | CPU | Software encoding. Works on any system but uses more CPU. |
Community Chat
The Chat page provides real-time encrypted messaging for your team or community.
Channels
Chat is organized into channels. Default channels include #general, #random, and #help. Admins can create, rename, and delete custom channels.
Message Features
- Markdown — Use
**bold**,*italic*,`code`,~~strikethrough~~, and||spoiler||(click to reveal) - Headers — Use
# Heading,## Subheading, and### Small Headingfor message structure - @Mentions — Type
@to open an autocomplete dropdown filtered by your input. Select with arrow keys and Enter/Tab, or click a suggestion. - Replies & Threads — Click the reply icon to respond to a message. Click any reply preview to open a thread panel showing the full reply chain.
- Emoji Reactions — React to any message with emoji. Right-click a message and choose "React" to pick an emoji, or click an existing reaction pill to toggle yours.
- Message Editing — Edit your own messages within 5 minutes of sending. Right-click and select "Edit" to modify inline. Edited messages show an (edited) indicator.
- Pinned Messages — Moderators and admins can pin important messages; in a stream's own chat the stream owner and the stream mods the owner appointed can too. A pinned banner at the top of chat shows the count and expands to reveal all pinned messages.
- Link Previews — URLs in messages automatically generate preview cards with title, description, and thumbnail from OpenGraph metadata.
- YouTube Embeds — YouTube links are automatically embedded as inline video players (privacy-enhanced mode via youtube-nocookie.com).
- Image Sharing — Upload images via the attachment button or paste from clipboard. Uploaded files are sanitized — only safe types render inline; HTML/JS/SVG are forced to download to prevent XSS. Files are served only to signed-in members, except custom emotes, which are public by design.
- Anonymous Mode — Post messages without revealing your identity
Unread Badges
Channels with unread messages show a badge count in the sidebar. Badges update in real-time and clear automatically when you view the channel.
Profiles & Presence
Customize your chat presence with:
- Display Nickname — Set a custom name shown in chat and throughout the portal
- Avatar — Choose from a collection of avatar icons
- Status — Set your status to Online, Away, Busy, Do Not Disturb, or Offline
- Status Message — Add a custom status message visible to other users
- Auto-Presence — Status automatically updates to online when you connect, away after 5 minutes idle, and offline when you disconnect
- Last Seen — Offline users show "Last seen X ago" so you know when they were last active
Online Users
The right sidebar shows currently online users with their roles indicated by color and presence status indicators. Click a username to insert an @mention.
Voice Chat
Each chat channel supports live voice chat. Voice uses WebRTC for direct peer-to-peer audio — the server only relays connection setup, never processes or stores audio.
- Join/Leave — Click "Join Voice" in the channel header to start. Audio connects directly between participants.
- Mute/Deafen — Mute your microphone or deafen to silence all incoming audio. Controls appear in the voice bar.
- VAD Mode — Voice Activity Detection automatically transmits when you speak. Adjust sensitivity in voice settings.
- Push-to-Talk — Hold a key (default: Space) to transmit. Rebind the key in voice settings.
- Per-user volume — Right-click or long-press a name in the voice bar or the online-users list (or focus it and press Enter, the context-menu key or Shift+F10) to set that person's volume from 0 to 200% or mute them for yourself. Only your own playback changes; others do not see it, it is kept in your browser, and it is still there after you rejoin or reload. Deafen silences everyone. On an iPhone or iPad the slider stops at 100% and the device may ignore volume changes below that; Mute for me always works.
- Speaking Indicators — Users in voice show a green highlight when speaking, with mute/deafen icons in the user list.
- Reconnect — If your connection drops (for example a Wi-Fi change), your seat in the call is kept for about 20 seconds and the voice bar shows "Reconnecting voice...". Others see you as reconnecting, not as having left. A second browser tab cannot join the same call, and closing it does not affect the call.
- Watch Page — Voice chat is also available in the stream watch page sidebar for coordinated viewing.
- DM Voice — Start a voice call directly in any DM conversation (1:1 or group). Works the same as channel voice with all the same controls.
Direct Messages
Private conversations outside of public channels. Start a 1:1 chat or create a group DM with up to 10 participants.
Getting Started
Open a new conversation from the chat sidebar by clicking New Message, then search for users by username or nickname. Select one user for a 1:1 DM, or select multiple users (up to 10) for a group conversation.
DM Features
- Encrypted at Rest — All DM message bodies are encrypted with Fernet, same as channel messages. The search index keeps the words of messages so they can be searched.
- Real-Time Delivery — Messages arrive instantly via WebSocket. No polling or page refresh needed.
- Reactions — React to messages with emoji, just like in channels.
- Replies — Reply to a specific message to maintain context in a conversation.
- Editing — Edit your own messages within 5 minutes of sending. Edited messages show an (edited) indicator.
- Deletion — Delete your own messages. Admins can delete any message.
- Typing Indicators — See when other participants are typing in real time.
- Unread Badges — DM conversations with unread messages display a badge count in the sidebar, updating in real time.
- Mute Conversations — Mute noisy conversations to suppress notification badges without leaving the conversation.
- Offline Notifications — Missed messages are queued and surfaced via the notification bell when you come back online.
Group DMs
Group DMs support 2 to 10 participants. All members can add new participants to an existing group. The conversation name defaults to a comma-separated list of member names but can be renamed by any participant.
Message Search
Full-text search across all your channels and direct messages, powered by SQLite FTS5 for fast, relevant results.
Using Search
Open the search bar with Ctrl+K (or Cmd+K on macOS), or click the search icon in the chat header. Type your query and press Enter to see results.
Search Filters
| Filter | Syntax | Example |
|---|---|---|
| From user | from:username |
from:alice deploy |
| In channel | in:channel |
in:general meeting notes |
| Has image | has:image |
has:image screenshot |
| Before date | before:YYYY-MM-DD |
before:2026-02-10 bug fix |
| After date | after:YYYY-MM-DD |
after:2026-02-01 migration |
Filters can be combined freely. For example: from:alice in:general has:image after:2026-02-01
Scope
By default, search covers all channels and DMs you have access to. Use the scope selector to narrow results:
- All — Search across all channels and DMs
- Channels — Only search public channel messages
- Direct Messages — Only search your private conversations
Navigating Results
Search results display the message text, author, channel or DM name, and timestamp. Click any result to jump directly to that message in its original context, with the message highlighted.
User Blocking
Block users to hide their messages and prevent DM communication.
- Hide Messages — Messages from blocked users are collapsed in chat channels. Click to optionally reveal.
- DM Prevention — Blocking is bidirectional for DMs — neither party can message the other while a block is active.
- Easy Management — Right-click any message to block/unblock the sender, or manage your block list via the REST API.
- Personal Preference — Blocking is per-user and does not require admin intervention. Admins cannot override personal blocks.
Polls
Create inline polls in any chat channel to gather opinions and make decisions collaboratively.
- Quick Creation — Click the poll button next to the emoji picker. Add a question, 2-10 options, and optional settings.
- Multi-Vote — Optionally allow users to vote for multiple options.
- Anonymous Voting — Hide voter identities when privacy matters.
- Time Limits — Set an optional duration in minutes for the poll to auto-close.
- Live Results — Vote counts update in real-time for all participants.
- Close Control — Poll creators and moderators can close a poll early.
Channel Permissions
Fine-grained control over who can see and post in each channel.
- Public / Private — Public channels are visible to everyone. Private channels require explicit membership — non-members can't see or join them.
- Open / Read-Only — Open channels let all members post. Read-only channels restrict posting to moderators and channel moderators.
- Channel Members — Admins, creators, and channel moderators can add and remove members from private channels.
- Stream Mods — A stream owner can appoint up to 20 stream mods in the stream settings. In that stream's chat only, the owner and the mods can pin, time out, delete, ban, run polls and set slow mode (0, 5, 15 or 30 seconds) from the watch page, where they carry a Streamer or Mod badge. A member banned from a stream cannot watch it while signed in.
- Channel Moderators — Promote members to channel moderator for per-channel moderation control without granting server-wide mod powers.
- Visual Indicators — Private channels show a lock icon; read-only channels show a muted speaker icon.
Notifications
The notification bell in the navbar keeps you informed of important events:
- Stream Events — Get notified when someone goes live
- Service Alerts — Alerts when managed services crash or restart
- Security Events — Warnings about repeated authentication failures
Click the bell icon to view notifications, and mark them as read individually or all at once.
SSH Keys
Manage SSH key pairs for key-based authentication to your remote servers.
Key Management
- Generate Keys — Create new Ed25519, RSA, or ECDSA key pairs directly in the portal
- Import Keys — Upload existing public keys for use with connections
- Associate with Connections — Link a key pair to an SSH connection for passwordless login
Supported Key Types
| Type | Algorithm | Notes |
|---|---|---|
ed25519 |
Ed25519 | Recommended. Modern, fast, and secure. |
rsa |
RSA 4096-bit | Widely compatible. Good for older systems. |
ecdsa |
ECDSA P-256 | Compact keys with strong security. |
API Keys & Authentication
Open Relay Portal supports multiple authentication methods for different use cases.
Authentication Methods
| Method | Use Case | Details |
|---|---|---|
| Session Cookies | Web UI | Automatic after login. HttpOnly, Secure, SameSite=Lax. |
| JWT Tokens | API access | Pass via Authorization: Bearer <token> header. |
| API Keys | Programmatic access | Long-lived keys with scoped permissions. Prefix: portal_ |
| RTMP Tokens | Plain RTMP publishing | Temporary single-use tokens for standard RTMP streams. Prefix: rtmp_. 15-minute expiry, 30-second grace period. |
API Key Scopes, Expiry and Addresses
When creating an API key, pick the scopes it needs from the list:
*— everything your account can doadmin— administrator routes (requires the admin role)services:readandaccess:*— member access; every key of a member who is not an administrator carries these two- any scope an administrator made up for a service
A new key expires after 90 days unless you choose another time or "Never" (a full-access key that never expires is flagged with a warning). You can also bind a key to the addresses or networks it is used from; from anywhere else it is refused like a wrong key. The key list shows where each key was created and last used from. Administrators see a "Stale" flag on keys unused for 90 days.
Two-Factor Authentication (2FA)
Enable TOTP-based two-factor authentication for your account:
- Go to your profile settings (click your username in the navbar)
- Click Enable 2FA
- Scan the QR code with an authenticator app (Google Authenticator, Authy, etc.)
- Enter the 6-digit code to verify and activate
Once enabled, you'll need to enter a code from your authenticator app each time you log in.
Your Sessions
Profile settings also list the devices your account is signed in on: the browser and system, when each signed in, when it was last used and from which IP address. Use Sign out on a device you do not recognise or no longer use, or Sign out other devices to keep only the one you are on. API keys are not sessions; they are managed under API Keys.
Admin Features ADMIN
Administrators have access to additional tools for managing the portal and monitoring infrastructure.
Service Management
The Services tab on the Dashboard shows two types of services:
- Proxy Services — Route traffic to external backends (e.g., web apps, APIs). Configure host, port, and path.
- Managed Services — Processes Portal runs directly (e.g., MediaMTX streaming server, SearXNG), or—with the
systemdtype—an existing systemd unit on the host that Portal controls viasystemctl. Start, stop, restart, edit, and view logs.
Managed services auto-start on boot (if enabled), have health checks every 30 seconds, and auto-restart with exponential backoff on crash. A systemd-type service is never stopped by Portal implicitly — only when you explicitly stop it — and its card tracks the unit even when it changes outside Portal.
Granting access. Use the Grant button on a managed-service card to let a specific non-admin user start / stop / restart it, view its logs, browse and edit its files (game servers — jailed to that server's directory tree), or any combination. Handy for handing a game server over to whoever runs it without making them an admin.
Game Servers
The Game Servers tab deploys dedicated game servers via SteamCMD. Search the built-in catalog of around eighty-five games (Palworld, Valheim, Project Zomboid, Rust, ARK, CS2, Team Fortress 2, Arma 3, DayZ, Satisfactory, 7 Days to Die and many more — or add your own entry), pick a game, name the instance, and Portal installs it, writes a systemd unit, and registers it as a managed service. Each server then has start/stop/restart, live logs, a one-click SteamCMD update (with an “already up to date” check), an editor for its launch arguments and stop signal (no shell — arguments reach the game verbatim), and a commander-style file browser jailed to that server's own directory tree — click the server's card to open it. Sort the list, right-click a file to edit, download, rename, or delete it, upload new files (multi-select or drag-and-drop), with the game's known settings files pinned at the top — the editor syntax-highlights INI/CFG, JSON, XML, YAML, TOML, Lua, and properties files — plus a backup download that bundles the config and save/world files into one .tar.gz. A server you already run through a hand-rolled systemd unit can be adopted onto this without reinstalling.
Grant a non-admin Control, Logs and/or Files and every action they're allowed appears as a labelled button on that server's card on their own dashboard — start/stop/restart, view logs, edit config, download a backup — and nothing else.
Sharing a Connection
On any connection card (dashboard or Manage Connections) click Share and type one or more usernames. Those users get the connection on their own dashboard — marked “shared by you” — and can open it in the embedded browser, web shell, xterm or VNC. They can't edit or delete it, and it never appears over the raw API relay. Remove someone and their access is gone on their next request.
Device-Wide Metrics
The Metrics tab keeps a persisted history of the whole host, not just Portal's traffic. Every 60 seconds Portal records CPU and memory per service/process, every listening port and the connections on it, and the remote IPs talking to the box (with the ports they hit and the process serving them). Charts span 6 hours to 14 days and survive restarts; retention is set under Settings → Data Retention. Values are point-in-time samples, so very short-lived connections may not show up.
Web Browser on the server
Admin → Settings has a card Web Browser on the server. Every administrator can read it: whether this host can run the feature and what is missing (with the apt-get line), the Chromium version, the last sandbox check, the seats the host really allows and the sessions running now (member, since, active or idle, attached, memory, CPU time, data in and out) with an End button behind a question. There is no way to see a session's page. A superadmin signed in with the password switches it on, runs the check again and saves the ten settings (who may use it, seats, idle minutes, memory and CPU per session, clipboard mode, home page, upload limit, extra blocked networks). It is off by default; no session starts before a sandbox check has passed; switching it off ends every session. Administrators of this portal have a root shell on the server and could observe a running browser, which the privacy statement says to members. Details and limits are in the README section “Web Browser (server-side)”.
User Management
- View all registered users and their roles
- Promote or demote user roles
- Reset user passwords
- Ban or disable accounts
Server Terminal
Click the terminal icon in the navbar to open a local shell session directly in your browser. This provides full terminal access to the server running the portal.
Monitoring Tools
Traffic Metrics
Real-time request rates, bandwidth usage, and response time statistics.
Log Viewer
Browse server logs with level and keyword filtering. Sensitive data is auto-redacted.
Vulnerability Scanner
Scan hosts for open ports and check against CVE databases for known vulnerabilities.
Shodan Integration
Query Shodan for network reconnaissance and exposure monitoring of your infrastructure.
VOD Storage
All users can manage their recorded stream archives stored on remote SFTP servers. VODs are automatically recorded as 5-minute MKV chunks during live broadcasts and continuously uploaded to your SFTP storage. When a stream ends, it enters an Encoding state while the final chunk is written and all remaining data is offloaded — the stream only goes fully offline once all VODs are safely stored. Configure your SFTP storage from the My VODs tab, then browse, search, download (individual or batch zip), and delete VOD files.
System Health Dashboard
The Admin Panel includes a real-time system health dashboard showing:
- CPU Usage — Current utilization and load averages
- Memory — Total, used, and available RAM
- Disk — Storage usage for the root partition
- Portal Process — RSS memory, virtual memory, thread count, and PID
- System Uptime — Time since last system boot
Certificate Management
Manage TLS certificates directly from the Admin Panel Settings tab:
- Upload Custom — Bring your own PEM certificate and key (Cloudflare Origin CA, internal CA, etc.)
- Self-Signed — Auto-generate RSA 4096-bit certificates for development or LAN use
- Let's Encrypt — Request free trusted certificates with automated renewal
- Certificate Info — View subject, issuer, SANs, expiry countdown, fingerprint, and key type
- Expiry Warnings — Automatic alerts when certificates are expiring within 30 days
- Apply & Restart — Seamlessly activate new certificates with one click
Setup Wizard
One-command setup from fresh clone to running server:
sudo python3 server.py setup
The setup wizard works immediately on a fresh git clone — no virtual environment or dependencies needed first. It handles everything:
- Auto-generates a self-signed TLS certificate on fresh installs so the server starts immediately
- Creates virtual environment and installs all Python dependencies
- Generates JWT secret and writes
.envconfiguration - Initializes the database and creates the admin user
- Generates systemd service file with correct paths for any install location
- Optionally installs, enables, and starts the service
- Validates the final configuration (cert files exist, permissions, JWT secret)
- Works for both fresh installs and reconfiguration of existing setups
- Switch to Let's Encrypt or custom certs later via Admin Panel or re-running setup
sudo). To run without root, set PORT=8443 in .env.
Self-signed certificates cause a browser warning on first visit — click “Advanced” > “Proceed” to continue.
Data Retention
Configure automatic cleanup policies for old data to keep the database lean. Settings are available in the Admin Panel Settings tab:
| Setting | Default | Description |
|---|---|---|
| Chat Messages | 7 days | Public channel messages older than this are deleted |
| Direct Messages | 30 days | Private DM messages older than this are deleted |
| Notifications | 30 days | User notifications older than this are deleted |
| Activity Log Max Entries | 500 | Maximum number of activity log entries to keep (oldest trimmed first) |
| Service Logs Max per Service | 1000 | Maximum number of log entries to keep per managed service |
| Security Events | 180 days | Sign-in and credential events (Audit Log → Security) older than this are deleted; 0 keeps them all |
| Cleanup Interval | 6 hours | How often the automatic cleanup task runs |
| Auto-VACUUM | Off | Optionally compact the SQLite database after each cleanup to reclaim disk space |
Expired tokens and API keys are also cleaned up automatically during each run.
Image and file uploads in chat are deleted together with their messages (retention, clearing a channel, deleting a message), unless another message still uses the same file. A daily check lists upload files that no message refers to; it only reports them in the log and deletes nothing yet.
- Automatic Cleanup — Task runs on the configurable interval (default: every 6 hours)
- Manual Trigger — Force cleanup immediately from the Settings tab
- Disable Per-Type — Set days to 0 or max entries to 0 to disable cleanup for that data type
Server File Manager (Admin Panel → Files Tab)
The Admin Panel includes a Files tab for managing local server files:
- Integrated File Browser — Full file manager UI embedded directly in the Admin Panel
- Drag-and-Drop Upload — Drag files from your desktop to upload instantly
- Quick Edit — Edit server configuration files on-the-fly with syntax highlighting
- Path Navigation — Breadcrumb bar for fast directory traversal
- Security — Path traversal prevention, blocked sensitive files (.env, credentials), configurable root directory
Server file management is admin-only and available exclusively in the Admin Panel. The File Manager page (/files) provides Remote Files (SFTP) access for all users.
System Monitor (Admin Panel → System Tab)
Real-time server monitoring and management tools, available in the Admin Panel as the System tab.
Process Manager
View all running processes with CPU, memory, and command info. Features include:
- Sort by CPU usage, memory, PID, or name
- Search and filter processes
- Kill processes with SIGTERM/SIGKILL (safety: refuses PID 1 and portal process)
- Auto-refresh mode (5-second interval)
Service Manager
Monitor and control systemd services directly from the web UI:
- View all services with status badges (running/stopped/failed)
- Start, stop, and restart services
- View journal logs with configurable line count
- Filter by running, failed, or text search
Network Info
View network interfaces (IPs, MAC, speed, TX/RX bytes) and all listening ports with associated processes.
Audit Log
A complete, searchable record of all moderation actions on the server. Available to moderators and above in the Admin Panel.
- Comprehensive Tracking — Every mod action is logged: message deletions, timeouts, mutes, bans, channel operations, role changes, and automod triggers.
- Filterable — Filter by action type, actor, channel, or date range to find specific events.
- Paginated — Browse through the full history with pagination support.
- Auto-Cleanup — Configurable retention period (default: 90 days) via the Data Retention settings.
- Privacy — IP addresses are logged for security but not exposed in the API response.
- Security events — Superadmins also get Security and Auth views in the Audit Log tab: sign-ins and failed attempts (including unknown accounts), 2FA, API keys, password and role changes, IP blocks and exports, each with IP address and browser. Repeated attempts from one address are counted in one row per minute. Passwords, codes, tokens and keys are never recorded. The list can be exported as CSV or JSON, and rows are kept for 180 days by default (Data Retention settings).
Auto-Moderation
Automated message filtering rules that protect chat channels without requiring moderators to be online. Configure rules in the Admin Panel → Settings tab.
- Word Filter — Block messages containing specific words or patterns. Supports exact match, contains, and regex modes.
- Spam Filter — Can be stored, but is not enforced yet: chat does not act on it.
- Link Filter — Control URL posting with allow/block lists or block all links entirely.
- Caps Filter — Prevent excessive caps lock usage above a configurable percentage threshold.
- Mention Spam — Limit the number of @mentions per message to prevent notification abuse.
Automod Actions
- Warn and Delete — Both act the same way today: the message (or the edit) is not sent, and the author gets a private error naming the rule. Nothing else happens to the member.
- Timeout — The same block, plus the member is timed out in that channel for the rule’s duration (5 minutes when none is set); the channel sees an “AutoMod” notice.
- Mute — The same block, plus the member is muted in that channel until a moderator lifts it; the channel sees an “AutoMod” notice.
Rules apply to new messages and to edits; an edit that breaks a rule is refused and the message keeps its old text. Moderators, admins, and superadmins are still blocked by a rule but are not timed out or muted by it. All triggers are logged to the audit log.
File Manager
Browse and manage files through the web interface. The File Manager page (/files) provides Remote Files (SFTP) access for all users. Server file management is available in the Admin Panel → Files tab (admin only).
Remote Files (SFTP)
Browse files on remote servers using your existing SSH/SFTP connections:
- Select from your configured SSH/SFTP connections
- Full file browsing with breadcrumb navigation, upload, download, edit, create, rename, and delete
- Commander-Style Dual Pane — When you have 2 or more SFTP connections, toggle split view for side-by-side file browsing
- Per-user access — only your own connections are accessible
Security
Open Relay Portal is designed with security as a core principle.
Transport Security
- HTTPS Only — All traffic is served over TLS on port 443. No HTTP fallback.
- HSTS — HTTP Strict Transport Security with 1-year max-age, includeSubDomains, and preload.
- WSS Only — All WebSocket connections use TLS encryption.
- TLS 1.2+ — Only strong cipher suites are permitted.
- Voice Encryption — Voice chat audio is encrypted between participants with WebRTC DTLS-SRTP and goes directly between their browsers. No audio is stored or processed server-side; if you configure a TURN relay it carries the still-encrypted audio.
Data Protection
- Chat Encryption — Message bodies are encrypted at rest using Fernet symmetric encryption; the search index keeps their words so they can be searched.
- Password Hashing — All passwords are hashed with Argon2id (memory-hard, timing-safe).
- API Key Storage — API keys are stored as hashed values. Only the prefix is kept for lookup.
- SSH Private Keys — Never stored server-side. Returned once at creation time only.
- RTMP Tokens — Plain RTMP uses temporary single-use tokens instead of permanent stream keys. Tokens expire after 15 minutes and are invalidated immediately on use.
- Log Redaction — Sensitive data (passwords, tokens, keys) is automatically stripped from logs.
Access Controls
- Role-Based Access — Four-tier role system controlling feature access.
- Opaque Connection IDs — Connections use URL-safe tokens instead of sequential integers, preventing enumeration.
- Proxy Isolation — Embedded browser strips Portal session cookies and auth headers from upstream requests. Since 1.24.1 every page of browser mode, and every page of a member's web connection that somebody else opens, runs in an opaque-origin sandbox that cannot call Portal as the viewer. Pages of an administrator's connection (not in browser mode), of a connection the viewer owns and of one a superadmin marked trusted run on Portal's own address with the viewer's session, so proxy only applications you trust. Sites opened in one browser-mode connection can read each other's signed-in pages (the access of a page belongs to the connection, not to one site). Since 1.24.2 the address of an isolated page is encrypted (it shows the page no member, session or connection id), isolated pages send no Referer to other sites, and an isolated page can make credentialed requests, with the cookies the portal keeps for the connection, to its own address only; the portal session cookie is never sent to the connection.
- Rate Limiting — Per-IP rate limiting on all endpoints to prevent abuse.
- Localhost Blocking — User connections cannot target local addresses (127.0.0.1, ::1).
- CSRF Protection — Secure cookie attributes limit cross-site request forgery, and since 1.24.1 a cookie-authenticated call that changes something is refused when the browser marks it cross-site or when it comes from a proxied page.
- Invite-Only Registration — New accounts require an invite code (daily, single-use, or timed).
Mobile & Accessibility
The portal is fully responsive and optimized for mobile devices, tablets, and desktop browsers.
Responsive Breakpoints
| Breakpoint | Target | Key Changes |
|---|---|---|
900px | Tablets | Stream viewer stacks, chat sidebars become overlays |
768px | Small tablets | Hamburger nav, dashboard stacks, modals resize |
600px | Large phones | Forms stack, grids single-column |
480px | Phones | Compact cards, modals, and navbar |
360px | Small phones | Stats single-column, tabs wrap |
Touch & Accessibility
- 44px Touch Targets — All buttons and interactive elements meet WCAG minimum size on touch devices.
- iOS Zoom Prevention — Form inputs use 16px font to prevent unwanted auto-zoom.
- Reduced Motion — Animations are disabled when the user prefers reduced motion.
- High Contrast — Enhanced borders and contrast in high-contrast mode.
- Focus Indicators — Visible focus rings on all interactive elements for keyboard navigation.