docker/mod/nginx/bbb/notes.nginx

64 lines
2.3 KiB
Plaintext
Raw Normal View History

2020-04-09 08:48:47 +02:00
# https://github.com/ether/etherpad-lite/wiki/How-to-put-Etherpad-Lite-behind-a-reverse-Proxy
2020-07-30 12:07:03 +02:00
location /pad/p/ {
rewrite /pad/p/(.*) /p/$1 break;
rewrite ^/pad/p$ /pad/p/ permanent;
2020-04-09 15:43:58 +02:00
proxy_pass http://etherpad:9001;
2020-04-09 08:48:47 +02:00
proxy_pass_header Server;
proxy_redirect / /pad;
proxy_set_header Host $host;
proxy_buffering off;
2020-07-30 12:07:03 +02:00
# there is currently no viable source for building the
# bbb-etherpad including sesstiontokens which got introduced in v2.2.21
# https://github.com/bigbluebutton/bigbluebutton/issues/10159
#
# We disable the authentication for now.
# auth_request /bigbluebutton/connection/checkAuthorization;
# auth_request_set $auth_status $upstream_status;
2020-04-09 08:48:47 +02:00
}
location /pad {
rewrite /pad/(.*) /$1 break;
rewrite ^/pad$ /pad/ permanent;
2020-04-09 15:43:58 +02:00
proxy_pass http://etherpad:9001/;
2020-04-09 08:48:47 +02:00
proxy_pass_header Server;
proxy_redirect / /pad/;
proxy_set_header Host $host;
proxy_buffering off;
}
2020-07-30 12:07:03 +02:00
location /pad/socket.io/socket.io.js {
rewrite /pad/socket.io/socket.io.js /socket.io/socket.io.js break;
proxy_pass http://etherpad:9001/;
proxy_set_header Host $host;
proxy_buffering off;
}
2020-04-09 08:48:47 +02:00
location /pad/socket.io {
rewrite /pad/socket.io/(.*) /socket.io/$1 break;
2020-04-09 15:43:58 +02:00
proxy_pass http://etherpad:9001/;
2020-04-09 08:48:47 +02:00
proxy_redirect / /pad/;
proxy_set_header Host $host;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr; # http://wiki.nginx.org/HttpProxyModule
proxy_set_header X-Forwarded-For $remote_addr; # EP logs to show the actual remote IP
proxy_set_header X-Forwarded-Proto $scheme; # for EP to set secure cookie flag when https is used
proxy_set_header Host $host; # pass the host header
proxy_http_version 1.1; # recommended with keepalive connections
# WebSocket proxying - from http://nginx.org/en/docs/http/websocket.html
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
2020-07-30 12:07:03 +02:00
# auth_request /bigbluebutton/connection/checkAuthorization;
# auth_request_set $auth_status $upstream_status;
2020-04-09 08:48:47 +02:00
}
location /static {
rewrite /static/(.*) /static/$1 break;
2020-04-09 15:43:58 +02:00
proxy_pass http://etherpad:9001/;
2020-04-09 08:48:47 +02:00
proxy_set_header Host $host;
proxy_buffering off;
}