Skip to content
Snippets Groups Projects
Verified Commit 93e4a4f1 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added FUNWHALE_URL setting to use in activity stream in representations

parent 5c2ddc56
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ test_api: ...@@ -22,7 +22,7 @@ test_api:
variables: variables:
DJANGO_ALLOWED_HOSTS: "localhost" DJANGO_ALLOWED_HOSTS: "localhost"
DATABASE_URL: "postgresql://postgres@postgres/postgres" DATABASE_URL: "postgresql://postgres@postgres/postgres"
FUNKWHALE_URL: "https://funkwhale.ci"
before_script: before_script:
- cd api - cd api
- pip install -r requirements/base.txt - pip install -r requirements/base.txt
......
...@@ -25,7 +25,7 @@ except FileNotFoundError: ...@@ -25,7 +25,7 @@ except FileNotFoundError:
pass pass
ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS') ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS')
FUNKWHALE_URL = env('FUNKWHALE_URL')
# APP CONFIGURATION # APP CONFIGURATION
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
......
...@@ -12,5 +12,6 @@ services: ...@@ -12,5 +12,6 @@ services:
environment: environment:
- "DJANGO_ALLOWED_HOSTS=localhost" - "DJANGO_ALLOWED_HOSTS=localhost"
- "DATABASE_URL=postgresql://postgres@postgres/postgres" - "DATABASE_URL=postgresql://postgres@postgres/postgres"
- "FUNKWHALE_URL=https://funkwhale.test"
postgres: postgres:
image: postgres image: postgres
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# following variables: # following variables:
# - DJANGO_SECRET_KEY # - DJANGO_SECRET_KEY
# - DJANGO_ALLOWED_HOSTS # - DJANGO_ALLOWED_HOSTS
# - FUNKWHALE_URL
# Additionaly, on non-docker setup, you'll also have to tweak/uncomment those # Additionaly, on non-docker setup, you'll also have to tweak/uncomment those
# variables: # variables:
...@@ -28,6 +29,9 @@ FUNKWHALE_VERSION=latest ...@@ -28,6 +29,9 @@ FUNKWHALE_VERSION=latest
FUNKWHALE_API_IP=127.0.0.1 FUNKWHALE_API_IP=127.0.0.1
FUNKWHALE_API_PORT=5000 FUNKWHALE_API_PORT=5000
# Replace this by the definitive, public domain you will use for
# your instance
FUNKWHALE_URL=https.//yourdomain.funwhale
# API/Django configuration # API/Django configuration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment