fix for greenlight CSRF error ActionController::InvalidAuthenticityToken, due to wrong requesting url protocol

https://github.com/bigbluebutton/greenlight/issues/997
This commit is contained in:
chandi 2020-04-13 14:51:45 +02:00
parent 95dd18199a
commit ec3b5df112
2 changed files with 2 additions and 3 deletions

View File

@ -9,6 +9,7 @@ location /b {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
proxy_http_version 1.1;
}
@ -17,6 +18,7 @@ location /b/cable {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_http_version 1.1;

View File

@ -175,9 +175,6 @@ REPORT_ISSUE_URL=https://github.com/bigbluebutton/greenlight/issues/new
# RAILS_LOG_REMOTE_PORT=9999
# RAILS_LOG_REMOTE_TAG=greenlight
#
# Force SSL
#
# ENABLE_SSL=true
# Specify the default registration to be used by Greenlight until an administrator sets the
# registration method