Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
demo
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
demo
Commits
2cbd537f
Commit
2cbd537f
authored
8 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Last tweaks to Nginx conf and media / static conf, it seems to work at least locally
parent
d264e1ec
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
README.md
+17
-3
17 additions, 3 deletions
README.md
api-env
+7
-0
7 additions, 0 deletions
api-env
front-env
+1
-1
1 addition, 1 deletion
front-env
nginx.conf
+43
-0
43 additions, 0 deletions
nginx.conf
setup-demo.sh
+6
-4
6 additions, 4 deletions
setup-demo.sh
with
74 additions
and
8 deletions
README.md
+
17
−
3
View file @
2cbd537f
# Funkwhale demo
# Funkwhale demo
You simply need to download demo tracks (courtesy of Jamendo):
# Installation
Clone the repository:
cd /srv
git clone ssh://git@code.eliotberriot.com:2222/funkwhale/demo.git funkwhale-demo
cd funkwhale-demo
Download demo tracks (courtesy of Jamendo):
./download-tracks.sh
./download-tracks.sh
...
@@ -10,4 +18,10 @@ Then set up everything:
...
@@ -10,4 +18,10 @@ Then set up everything:
This will take care of pulling git repositories, spin up docker containers, etc.
This will take care of pulling git repositories, spin up docker containers, etc.
`./setup-demo`
may be called multiple times if you want to update the demo to newer versions.
Deploy nginx config:
cp nginx.conf /etc/nginx/conf.d/funkwhale-demo.conf
# Upgrading
`./setup-demo`
may be called whenever if you want to update the demo to newer versions.
This diff is collapsed.
Click to expand it.
api-env
+
7
−
0
View file @
2cbd537f
API_AUTHENTICATION_REQUIRED=false
API_AUTHENTICATION_REQUIRED=false
USE_SAMPLE_TRACK=false
DJANGO_SETTINGS_MODULE=config.settings.production
DJANGO_ALLOWED_HOSTS=demo.funkwhale.audio
DJANGO_SECRET_KEY=demo
REGISTRATION_MODE=disabled
DJANGO_ADMIN_URL=noop
STATIC_URL=/staticfiles/
This diff is collapsed.
Click to expand it.
front-env
+
1
−
1
View file @
2cbd537f
BACKEND_URL=http
s
://demo.funkwhale.io
BACKEND_URL=http://demo.funkwhale.
aud
io
This diff is collapsed.
Click to expand it.
nginx.conf
0 → 100644
+
43
−
0
View file @
2cbd537f
upstream
api
{
server
localhost
:
6001
;
}
server
{
listen
80
;
server_name
demo.funkwhale.audio
;
## redirect http to https ##
rewrite
^
https://
$server_name$request_uri
?
permanent
;
}
server
{
server_name
demo.funkwhale.audio
;
listen
443
;
ssl
on
;
ssl_certificate
/etc/ssl/demo.funkwhale.audio/domain.crt
;
ssl_certificate_key
/etc/ssl/demo.funkwhale.audio/domain.key
;
root
/srv/funkwhale-demo/front/dist
;
location
/
{
try_files
$uri
$uri
/
@rewrites
;
}
location
@rewrites
{
rewrite
^(.+)
$
/index.html
last
;
}
location
/api
{
proxy_set_header
Host
$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
https
;
proxy_redirect
off
;
proxy_pass
http://api/
;
}
location
/media/
{
alias
/srv/funkwhale-demo/api/media/
;
}
location
/staticfiles/
{
alias
/srv/funkwhale-demo/api/staticfiles/
;
}
}
This diff is collapsed.
Click to expand it.
setup-demo.sh
+
6
−
4
View file @
2cbd537f
...
@@ -22,7 +22,8 @@ echo "Setting up front .env file..."
...
@@ -22,7 +22,8 @@ echo "Setting up front .env file..."
cp
./front-env front/.env
cp
./front-env front/.env
echo
"Stopping previous demo..."
echo
"Stopping previous demo..."
docker-compose
-p
funkwhale_demo_api
-f
api/dev.yml down
-v
docker-compose
-p
funkwhale_demo_api
-f
api/docker-compose.yml run api
rm
-rf
media
docker-compose
-p
funkwhale_demo_api
-f
api/docker-compose.yml down
-v
docker-compose
-p
funkwhale_demo_front
-f
front/dev.yml down
-v
docker-compose
-p
funkwhale_demo_front
-f
front/dev.yml down
-v
rm
-rf
api/funkwhale_api/media
rm
-rf
api/funkwhale_api/media
...
@@ -30,8 +31,9 @@ echo "Compiling front-end files..."
...
@@ -30,8 +31,9 @@ echo "Compiling front-end files..."
docker-compose
-p
funkwhale_demo_front
-f
front/dev.yml run app npm run build
docker-compose
-p
funkwhale_demo_front
-f
front/dev.yml run app npm run build
echo
"Configuring api..."
echo
"Configuring api..."
docker-compose
-p
funkwhale_demo_api
-f
api/dev.yml up
-d
postgres
docker-compose
-p
funkwhale_demo_api
-f
api/docker-compose.yml build
docker-compose
-p
funkwhale_demo_api
-f
api/docker-compose.yml up
-d
postgres
sleep
5
sleep
5
docker-compose
-p
funkwhale_demo_api
-f
api/de
v
.yml run
django
./demo/load-demo-data.sh
docker-compose
-p
funkwhale_demo_api
-f
api/d
ocker-compos
e.yml run
api
./demo/load-demo-data.sh
docker-compose
-p
funkwhale_demo_api
-f
api/de
v
.yml up
-d
docker-compose
-p
funkwhale_demo_api
-f
api/d
ocker-compos
e.yml up
-d
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