Changing the Deployment Domain
When deploying RepoFlow, the default configuration is set to run on localhost
. This guild will help you change the domain from localhost to any domain.
Changes in the Server Environment
In your docker-compose.yml
, update the following environment variables in the server service:
-
FRONTEND_URL
- Example:
https://my-repoflow.com
- Example:
-
SERVER_URL
- Example:
https://my-repoflow.com/api
- Example:
-
COOKIE_DOMAIN
- Example:
my-repoflow.com
- Example:
-
COOKIE_SECURE
- Example:
true
for HTTPS,false
otherwise.
- Example:
server:
environment:
FRONTEND_URL: "https://my-repoflow.com"
SERVER_URL: "https://my-repoflow.com/api"
COOKIE_DOMAIN: "my-repoflow.com"
COOKIE_SECURE: "true"
Changes in the Client Environment
In your client/env.js
file, update the following variables:
-
window.COOKIE_DOMAIN
- Example:
window.COOKIE_DOMAIN = "my-repoflow.com";
- Example:
-
window.IS_CONNECTION_SECURE
- Example:
window.IS_CONNECTION_SECURE = true; // for HTTPS
- Example:
Applying Changes
Using Docker Compose
- Update the
docker-compose.yml
andclient/env.js
files as outlined above. - Restart the services:
docker-compose down
docker-compose up -d
With these updates, your RepoFlow instance will now use your custom domain with the appropriate secure settings.