ruma / homeserver Goto Github PK
View Code? Open in Web Editor NEWA Matrix homeserver written in Rust.
Home Page: https://www.ruma.io/
A Matrix homeserver written in Rust.
Home Page: https://www.ruma.io/
Parameters:
m.room.member
events for each invitationm.room.history_visibility
eventm.room.join_rules
eventm.room.power_levels
m.room.join_rules
m.room.history_visibility
m.room.aliases
eventm.room.canonical_alias
event if one isn't provided in initial_stateGlobal behavior:
m.room.member
for the user creating the roomhttps://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-sync
timeline.events
, timeline.limited
timeline.prev_batch
timeline.events
(m.room.member
, m.room.message
, m.room.history_visibility
)timeline
limiting by filter
since
, full_state
rooms.join
, rooms.leave
, rooms.invite
since
, filter
, full_state
, set_presence
, timeout
set_presence
, timeout
Currently using ruma as a bare server will fail for web clients as it doesn't send the Access-Control-Allow-Origin: *
header.
I wrote the following go
code to generate a 32 byte crypographically secure random number and base64 encode it, but I continually recieve Failed to load configuration file: macaroon_secret_key must be 32 bytes.
Output examples:
vqjwJXXjPci9+6o6Le9BZQ576l5xo7C+MTdRCju9
4B6W17W6l4eJT7TxHp7oVnG4r6Mjus7hDjATDSp2
bq30jK/m0EaLPJYlK6YWMr2wdZVGxu1uDPzCR1Gh
package main
import (
"bytes"
"crypto/rand"
"encoding/base64"
"fmt"
"log"
)
func main() {
b := make([]byte, 32)
_, err := rand.Read(b)
if err != nil {
log.Fatal(err)
}
buf := bytes.Buffer{}
base64.NewEncoder(base64.StdEncoding, &buf).Write(b)
fmt.Println(string(buf.Bytes()))
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.