Leon Klingele
1a33e4fe1c
Use proper variable for extra.d folder detection
10 years ago
Simon Eisenmann
ab47f59fe9
Fix syntax error from previous commit
10 years ago
Simon Eisenmann
e6c5046201
Add support for symlinks inside extra.d
10 years ago
Simon Eisenmann
cfec82384a
Add support for extra.d directory
...
To allow muliple plugins, sorted plugin load and general extensibility
of the web client, the server now supports to load an extra.d folder on
startup.
Sub folders inside extra.d, are loaded in alphabetic order and searched
for head.html and body.html, making it possible to append additional
html code into the <head> and <body> elements for the web client.
Example:
```
extra.d/
└── my-plugin
├── body.html
├── head.html
└── static
├── css
│ └── my-plugin.css
└── js
└── my-plugin.js
```
Example head.html:
```
<link rel="stylesheet" href="<%.S%>/css/my-plugin.css">
```
Example body.html:
```
<script data-plugin="<%.S%>/js/my-plugin.js"></script>
```
This makes it possible to extend the web client with additional
components and/or overwrite existing.
10 years ago
Joachim Bauch
da3cb4d0c4
Make the room type configurable through NATS.
10 years ago
Joachim Bauch
7fbc4449ca
Make mapping of room name to room type configurable.
10 years ago
Simon Eisenmann
14380185a6
Improve misleading log when pipelines API is enabled.
10 years ago
Simon Eisenmann
597d06d764
Pipeline API is now optional and disabled by default.
10 years ago
Simon Eisenmann
1f33a11e51
Hide pipelines web API behind a configuration flag.
10 years ago
Simon Eisenmann
33aa9e4e15
Implement NATS sink outbound encoding.
10 years ago
Simon Eisenmann
96cc6fd64c
Extended Pipeline manager to support Sink creation.
10 years ago
Simon Eisenmann
9ff675bca9
Implement sessionCreate via NATS.
10 years ago
Simon Eisenmann
336f2eda8f
Implemented pipeline for Offer, Candidate and Bye.
10 years ago
Simon Eisenmann
447bc7fe8e
Moved NATS connecting helpers to own submodule.
11 years ago
Simon Eisenmann
e617374095
Refactored structure of Go source code to module and binary.
11 years ago
Simon Eisenmann
27d71da896
Reconnect NATS forever and log NATS connection events.
11 years ago
Simon Eisenmann
41388af8fc
Implemented service discovery .well-known endpoint at /.well-known/spreed-configuration
11 years ago
Simon Eisenmann
85b8725d19
Added support for default and override config.
11 years ago
Simon Eisenmann
336879b818
Trigger NATS events non blocking through buffered channel.
11 years ago
Simon Eisenmann
f3e1d03d8c
Fixed tests to reflect busManager changes.
11 years ago
Simon Eisenmann
d782eb26d8
Added startup bus event and a NATS client id.
11 years ago
Simon Eisenmann
d4f2dc2f86
Removed auth bus event in favour of session bus event.
11 years ago
Simon Eisenmann
ebfe0f58f9
Added docstrings and cleaned up code.
11 years ago
Simon Eisenmann
a2f0830c79
Validate Offer and Answer content, so only events without _token key are triggered as channelling event to bus.
11 years ago
Simon Eisenmann
e33796f83f
Added support for NATS pub/sub messaging to trigger channeling events for external services.
11 years ago
Leon Klingele
067ed1c3e3
cryptoRand.Int / pseudoRand.Intn to generate random integer. Previous way was modulo-biased
11 years ago
Leon Klingele
2cfe8af4df
Add missing characters to random string function, so we use the full upper+lowercase alphabet
11 years ago
Simon Eisenmann
6920fcc891
Fix wrong type for syscall.Setrlimit on FreeBSD ( #244 )
...
Values are uint64 on Unix but FreeBSD uses int64 for legacy reasons.
11 years ago
Simon Eisenmann
737a34482d
Fixed test by initializing default room type correctly.
11 years ago
Simon Eisenmann
9e1aedaad3
Avoid to handle the main room as global room.
11 years ago
Simon Eisenmann
77d7860ba1
Moved CSP into HTTP response headers for odf and pdf sandbox and allowed blob: and data: img-src.
11 years ago
Simon Eisenmann
b3d03b819c
Serve odf and pdf sandbox from the server to prepare CSP http header for Firefox compatibility as Firefox does not support CSP in meta tag (see https://bugzilla.mozilla.org/show_bug.cgi?id=663570 ).
11 years ago
Simon Eisenmann
a523d6b783
Improved comments.
11 years ago
Joachim Bauch
5be1eda4ee
Don't return users twice in "Welcome" from global room.
11 years ago
Simon Eisenmann
6c1e9791d5
Added renegotiation configuration to server.
11 years ago
Simon Eisenmann
2be68c554c
Moved default room type to config.
11 years ago
Simon Eisenmann
856a23faca
Correct some errors found by golint.
11 years ago
Simon Eisenmann
beff7439b8
Bumped copyright to 2015.
11 years ago
Simon Eisenmann
d6f5dcac9e
Moved from Sleepy to Sloth.
11 years ago
Simon Eisenmann
e0fa8c8b43
Allow slashes unquoted in room names. This brings nested rooms.
11 years ago
Simon Eisenmann
69db76290d
Added server side ApiVersion returned with self to distinguish client and server API version support.
11 years ago
Simon Eisenmann
8d4ff54505
Updated tests to new room name with type api.
11 years ago
Simon Eisenmann
0a44f596bf
Implemented room types.
11 years ago
Simon Eisenmann
1d031b71ca
Fixed missing chat envelope which got lost in 56aa603293.
11 years ago
Lance Cooper
dcf1cc687a
Rename MakeSelf to HandleSelf as it now conforms to handler usage.
12 years ago
Lance Cooper
56aa603293
Add guards for NPE's when processing channelling API messages.
...
This also refactors the channelling API for better clarity
as well as introducing the following functional changes:
* All Hello requests will now receive a Welcome or Error return.
* The message sent in response to a successful authentication
request now uses the Iid provided with the originating request.
* Responses to requests for the Self document now use the Iid
provided with the originating request.
* Failed authentication requests now receive an error return.
* Malformed requests for the Hello, Authentication, Sessions,
and Rooms documents will now receive an error return.
* Requests for the Sessions document which cannot be processed
now receive an error return.
* Requests for the Users document will receive an error return
if the requesting session has not joined a room.
12 years ago
Simon Eisenmann
3804c74277
Make sure to send session close messages to subscriptions too to notify both ways.
12 years ago
Simon Eisenmann
d5323d2610
Fixed an issue where replaced sessions cannot receive data from contacts in other rooms.
12 years ago
Simon Eisenmann
bf516b5423
Make sure to send session close messages to subscriptions too to notify both ways.
12 years ago
Simon Eisenmann
e967ff5907
Fixed an issue where replaced sessions cannot receive data from contacts in other rooms.
12 years ago