Add option to overwrite the default instance with user env var

This commit is contained in:
wvffle 2022-07-01 18:01:58 +00:00
parent 06a65543e4
commit c278dd35e2
2 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,7 @@ tasks:
echo "STATIC_URL=http://localhost:8000/staticfiles/" >> .env echo "STATIC_URL=http://localhost:8000/staticfiles/" >> .env
echo "GITPOD_WORKSPACE_URL=$GITPOD_WORKSPACE_URL" >> .env echo "GITPOD_WORKSPACE_URL=$GITPOD_WORKSPACE_URL" >> .env
echo "HMR_PORT=8000" >> .env echo "HMR_PORT=8000" >> .env
echo "VUE_APP_INSTANCE_URL=$VUE_APP_INSTANCE_URL" >> .env
# Prepare docker # Prepare docker
docker network create federation docker network create federation

View File

@ -70,6 +70,21 @@ automatically in old and new workspaces.
The scope ``funkwhale/*`` will ensure that you will be signed into our instance on every The scope ``funkwhale/*`` will ensure that you will be signed into our instance on every
project that we're hosting, not only Funkwhale itself. project that we're hosting, not only Funkwhale itself.
Custom instance url
^^^^^^^^^^^^^^^^^^^
If you don't plan to use the instance that is provided and reacts to your code changes
or you prefer to use your own instance and save a couple of clicks every time you create
a new workspace, you can set a user user environment variable in `your Gitpod settings <https://gitpod.io/variables>`_.
+--------- ----------------+-----------------------------------+-------------------------+
| Name | Value | Scope |
+==========================+===================================+=========================+
| ``VUE_APP_INSTANCE_URL`` | ``https://funkwhale.example.com`` | ``funkwhale/funkwhale`` |
+--------------------------+-----------------------------------+-------------------------+
The scope ``funkwhale/funkwhale`` will ensure that this variable works only on funkwhale.
A quick path to contribute on the front-end A quick path to contribute on the front-end
------------------------------------------- -------------------------------------------