Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Greenlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arbeitsgruppe Hardwarenahe IT-Systeme
Greenlight
Commits
82492a72
Unverified
Commit
82492a72
authored
Jan 24, 2023
by
Khemissi Amir
Committed by
GitHub
Jan 24, 2023
Browse files
Options
Downloads
Patches
Plain Diff
Deployment: Added required files. (#4638)
parent
941c22df
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
bin/start
+15
-7
15 additions, 7 deletions
bin/start
config/cable.yml
+1
-1
1 addition, 1 deletion
config/cable.yml
docker-compose.yml
+36
-0
36 additions, 0 deletions
docker-compose.yml
greenlight-v3.nginx
+45
-0
45 additions, 0 deletions
greenlight-v3.nginx
sample.env
+27
-21
27 additions, 21 deletions
sample.env
with
124 additions
and
29 deletions
bin/start
+
15
−
7
View file @
82492a72
#!/usr/bin/env bash
if
[
-f
.env
]
;
then
export
$(
echo
$(
cat
.env |
sed
's/#.*//g'
| xargs
)
| envsubst
)
fi
export
PORT
=
"
${
PORT
:
=3000
}
"
echo
"Web app starting on port:
$PORT
"
PORT
=
"
${
PORT
:
=3000
}
"
PGHOST
=
postgres
PGPORT
=
5432
RSHOST
=
redis
RSPORT
=
6379
echo
"Greenlight-v3 starting on port:
$PORT
"
rails assets:precompile
if
[
"
$RAILS_ENV
"
=
"production"
]
;
then
while
!
rails db:version 2>/dev/null
while
!
nc
-zw3
$PGHOST
$PGPORT
do
echo
"Waiting for postgres to start up ..."
sleep
1
done
while
!
nc
-zw3
$RSHOST
$RSPORT
do
echo
"Waiting for redis to start up ..."
sleep
1
done
fi
rails assets:precompile
rails db:create
rails db:migrate:with_data
...
...
This diff is collapsed.
Click to expand it.
config/cable.yml
+
1
−
1
View file @
82492a72
...
...
@@ -6,5 +6,5 @@ test:
production
:
adapter
:
redis
url
:
<%= ENV.fetch("REDIS_URL")
{ "redis://localhost:6379/1" } %>
url
:
<%= ENV.fetch("REDIS_URL")
channel_prefix
:
greenlight_production
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
36
−
0
View file @
82492a72
version
:
'
3'
services
:
postgres
:
image
:
postgres:14.6-alpine3.17
container_name
:
postgres
restart
:
unless-stopped
volumes
:
-
./data/postgres/14/database_data:/var/lib/postgresql/data
environment
:
-
POSTGRES_DB=postgres
-
POSTGRES_USER=postgres
-
POSTGRES_PASSWORD=
redis
:
image
:
redis:6.2-alpine3.17
container_name
:
redis
restart
:
unless-stopped
volumes
:
-
./data/redis/database_data:/data
greenlight-v3
:
entrypoint
:
[
bin/start
]
image
:
bigbluebutton/greenlight:v3
container_name
:
greenlight-v3
restart
:
unless-stopped
env_file
:
.env
ports
:
-
127.0.0.1:5050:3000
logging
:
driver
:
journald
volumes
:
-
./data/greenlight-v3/storage:/usr/src/app/storage
depends_on
:
-
postgres
-
redis
This diff is collapsed.
Click to expand it.
greenlight-v3.nginx
0 → 100644
+
45
−
0
View file @
82492a72
### Greenlight version 3:
location /cable {
proxy_pass http://127.0.0.1:5050;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_http_version 1.1;
proxy_read_timeout 6h;
proxy_send_timeout 6h;
client_body_timeout 6h;
send_timeout 6h;
}
location @bbb-fe {
proxy_pass http://127.0.0.1:5050;
proxy_read_timeout 60s;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Cookie "$http_cookie; ip=$remote_addr";
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
client_max_body_size 30m;
rewrite ~/(.*)$ /$1 break;
}
This diff is collapsed.
Click to expand it.
sample.env
+
27
−
21
View file @
82492a72
# DATABASE URL
# Must be in the format postgres://username:password@host:port/name
### POSTGRES DATABASE URL
# Must be in the format postgres://username:password@host:port/dbname
# E.g. postgres://postgres:password@postgres:5432/greenlight-v3-production
DATABASE_URL=
# The endpoint and secret for your BigBlueButton server.
### REDIS CACHE URL
# Must be in the format redis://host:port
# E.g. redis://redis:6379
REDIS_URL=
### The endpoint and secret for your BigBlueButton server.
# Set these if you are running GreenLight on a single BigBlueButton server.
# You can retrive these by running the following command on your BigBlueButton server:
# You can retri
e
ve these by running the following command on your BigBlueButton server:
#
# bbb-conf --secret
#
BIGBLUEBUTTON_ENDPOINT=
BIGBLUEBUTTON_SECRET=
#BIGBLUEBUTTON_ENDPOINT=
#BIGBLUEBUTTON_SECRET=
# To enable hCaptcha on the user sign up and sign in, define these 2 keys
#
HCAPTCHA_SITE_KEY=
HCAPTCHA_SECRET_KEY=
#HCAPTCHA_SITE_KEY=
#HCAPTCHA_SECRET_KEY=
# Set these if you are using a Simple Storage Service (S3)
# Uncomment S3_ENDPOINT only if you are using a S3 OTHER than Amazon Web Service (AWS) S3.
#
#S3_ACCESS_KEY_ID=
#S3_SECRET_ACCESS_KEY=
#S3_REGION=
#S3_BUCKET=
#S3_ENDPOINT=
PORT=
### GL3 secret key base.
# openssl rand -hex 64
SECRET_KEY_BASE=
RAILS_ENV=
RAILS_SERVE_STATIC_FILES=
# OpenId configuration:
#OPENID_CONNECT_CLIENT_ID=
#OPENID_CONNECT_CLIENT_SECRET=
#OPENID_CONNECT_ISSUER=
#OPENID_CONNECT_REDIRECT=
#OPENID_CONNECT_UID_FIELD=
#PORT=
#RAILS_ENV=
#RAILS_SERVE_STATIC_FILES=
# Define the default locale language code (i.e. 'en' for English) from the fallowing list:
# [en, ar, fr, es]
DEFAULT_LOCALE=
#
DEFAULT_LOCALE=
en
# SMTP configuration:
#SMTP_SENDER_EMAIL=
...
...
@@ -54,3 +53,10 @@ DEFAULT_LOCALE=
#SMTP_STARTTLS=false
#SMTP_TLS=true
#SMTP_SSL_VERIFY=true
# OpenID configuration:
#OPENID_CONNECT_CLIENT_ID=
#OPENID_CONNECT_CLIENT_SECRET=
#OPENID_CONNECT_ISSUER=
#OPENID_CONNECT_REDIRECT=
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment