Added FUNWHALE_URL setting to use in activity stream in representations

This commit is contained in:
Eliot Berriot 2018-02-25 14:43:23 +01:00
parent 5c2ddc56c4
commit 93e4a4f123
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
4 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------

View File

@ -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

View File

@ -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
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