forked from External/greenlight
Updates to env variables for logging (#309)
* Updates to env variables for logging * Added not_found template to application
This commit is contained in:
parent
5174bf1c1e
commit
b3a2d9e39e
23
app/views/application/not_found.html.erb
Normal file
23
app/views/application/not_found.html.erb
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<%
|
||||||
|
# BigBlueButton open source conferencing system - http://www.bigbluebutton.org/.
|
||||||
|
# Copyright (c) 2018 BigBlueButton Inc. and by respective authors (see below).
|
||||||
|
# This program is free software; you can redistribute it and/or modify it under the
|
||||||
|
# terms of the GNU Lesser General Public License as published by the Free Software
|
||||||
|
# Foundation; either version 3.0 of the License, or (at your option) any later
|
||||||
|
# version.
|
||||||
|
#
|
||||||
|
# BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||||
|
# You should have received a copy of the GNU Lesser General Public License along
|
||||||
|
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||||
|
%>
|
||||||
|
|
||||||
|
<div class="container text-center pt-9">
|
||||||
|
<div class="display-1 text-muted mb-5">404</div>
|
||||||
|
<h1 class="h2 mb-3"><%= t("errors.not_found.message") %></h1>
|
||||||
|
<p class="h4 text-muted font-weight-normal mb-7"><%= t("errors.not_found.help") %></p>
|
||||||
|
<a class="btn btn-primary" href="javascript:history.back()">
|
||||||
|
<i class="fas fa-arrow-left mr-2"></i><%= t("go_back") %>
|
||||||
|
</a>
|
||||||
|
</div>
|
@ -93,7 +93,7 @@ Rails.application.configure do
|
|||||||
# require 'syslog/logger'
|
# require 'syslog/logger'
|
||||||
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
||||||
|
|
||||||
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
if ENV["RAILS_LOG_TO_STDOUT"] == "true"
|
||||||
logger = ActiveSupport::Logger.new(STDOUT)
|
logger = ActiveSupport::Logger.new(STDOUT)
|
||||||
logger.formatter = config.log_formatter
|
logger.formatter = config.log_formatter
|
||||||
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
||||||
|
19
sample.env
19
sample.env
@ -105,3 +105,22 @@ RELATIVE_URL_ROOT=/b
|
|||||||
# A URL to the image you want to appear in the top right corner of Greenlight.
|
# A URL to the image you want to appear in the top right corner of Greenlight.
|
||||||
# By default, this is the BigBlueButton logo.
|
# By default, this is the BigBlueButton logo.
|
||||||
BRANDING_IMAGE=
|
BRANDING_IMAGE=
|
||||||
|
|
||||||
|
# Comment this out to send logs to STDOUT in production instead of log/production.log .
|
||||||
|
#
|
||||||
|
# RAILS_LOG_TO_STDOUT=true
|
||||||
|
#
|
||||||
|
# When using docker-compose the logs can be sent to an external service like PaperTrail
|
||||||
|
# just by using the built in driver. Make sure to add to docker-compose.yml the next lines:
|
||||||
|
#
|
||||||
|
# logging:
|
||||||
|
# driver: syslog
|
||||||
|
# options:
|
||||||
|
# syslog-address: "tcp+tls://logs4.papertrailapp.com:[99999]"
|
||||||
|
# tag: greenlight.mydomain.com:v2
|
||||||
|
#
|
||||||
|
|
||||||
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||||
|
# It is disabled by default.
|
||||||
|
#
|
||||||
|
# ENABLE_SSL=true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user