Skip to content

Commit

Permalink
Add Spreed.ME integration
Browse files Browse the repository at this point in the history
Fixes #64

Signed-off-by: Olivier Paroz (oparoz) <github@oparoz.com>
  • Loading branch information
oparoz committed Oct 6, 2016
1 parent e347f33 commit b6381eb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snapcraft.yaml
Expand Up @@ -82,6 +82,8 @@ parts:
- headers
- proxy
- proxy_fcgi
- proxy_http
- proxy_wstunnel
- setenvif
- env
- rewrite
Expand Down
2 changes: 2 additions & 0 deletions src/apache/conf/httpd.conf
Expand Up @@ -54,6 +54,8 @@ LoadModule headers_module modules/mod_headers.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so
Expand Down
16 changes: 16 additions & 0 deletions src/apache/conf/ssl.conf
Expand Up @@ -145,4 +145,20 @@ SSLRandomSeed connect file:/dev/urandom 512
<IfDefine EnableHSTS>
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
</IfDefine>

#########################
# Spreed.ME #
#########################
<Location /webrtc>
ProxyPass http://127.0.0.1:8080/webrtc
ProxyPassReverse /webrtc
</Location>

<Location /webrtc/ws>
ProxyPass ws://127.0.0.1:8080/webrtc/ws
</Location>

ProxyVia On
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto 'https' env=HTTPS
</VirtualHost>

0 comments on commit b6381eb

Please sign in to comment.