Networking FAQ
All frequent questions related to networking.
How to configure HTTPS scheme for accessing Unstract?
-
Set the following to
True
inbackend/.env
:SESSION_COOKIE_SECURE=True
CSRF_COOKIE_SECURE=True -
Update scheme to
HTTPS
inbackend/.env
:# Django settings
DJANGO_APP_BACKEND_URL=https://<your_host>
# FE Web Application Dependencies
LOGIN_NEXT_URL="https://<your_host>/org"
LANDING_URL="https://<your_host>/landing"
ERROR_URL="https://<your_host>/error"
WEB_APP_ORIGIN_URL="https://<your_host>" -
See here to deploy Unstract behind your existing ALB or Nginx reverse proxy OR see here to change port, if required.
-
Do docker compose down and then up for
backend
service.
How to access Unstract via another host?
-
Update domain or IP address in
docker/docker-compose.yaml
:# Under backend service labels
- traefik.http.routers.backend.rule=Host(`<your_host>`) && PathPrefix(`/api/v1`, `/deployment`)
# Under frontend service labels
- traefik.http.routers.frontend.rule=Host(`<your_host>`) -
Update domain or IP address in
backend/.env
:# Django settings
DJANGO_APP_BACKEND_URL=http://<your_host>
# FE Web Application Dependencies
LOGIN_NEXT_URL="http://<your_host>/org"
LANDING_URL="http://<your_host>/landing"
ERROR_URL="http://<your_host>/error"
WEB_APP_ORIGIN_URL="http://<your_host>" -
See here to configure HTTPS scheme, if required.
-
Do docker compose down and then up for
backend
andreverse-proxy
services.
How to run Unstract on another port?
-
Update port in
backend/.env
:# Django settings
DJANGO_APP_BACKEND_URL=http://<your_host>:<your_port>
# FE Web Application Dependencies
LOGIN_NEXT_URL="http://<your_host>:<your_port>/org"
LANDING_URL="http://<your_host>:<your_port>/landing"
ERROR_URL="http://<your_host>:<your_port>/error"
WEB_APP_ORIGIN_URL="http://<your_host>:<your_port>" -
Update port in
docker/docker-compose-dev-essentials.yaml
:# Under reverse-proxy service labels
- "80:80" (OLD)
- "<your_port>:80" (NEW) -
See here to change the host, if required.
-
Do docker compose down and then up for
backend
andreverse-proxy
services.
I already have a ALB/Nginx acting as reverse proxy. How can I deploy Unstract behind it?
Please change the default host and/or run on another port, as needed.
Once done, start forwarding requests from your ALB/Nginx to the IP address and port of the unstract-proxy
container (in which the reverse-proxy
docker compose service is running).
The actual ALB/Nginx configuration can be easily obtained online hence is outside the scope of this documentation.