Proxy ¶
The proxy acts as a reverse proxy to the SciCat Live containers.
Configuration ¶
.env file ¶
It sets proxy options which are rarely changed, for example, the default configuration with the docker network.
.tls.env file ¶
It can be customized to set the TLS options. This has an effect only if the service URLs exposed by traefik are reachable from the public web.
You need to set the letsencrypt options here .
Enable TLS ¶
The proxy sets a default certificate resolver, using letsencrypt. To use it, you should:
-
change the
resolver settings
. If the docker volume
letsencrypt_proxy_data
already exists, you might need to remove it to apply changes from the .tls.env file -
add dedicated labels to each service to expose, making sure that the URLs are reachable by letsencrypt. You should set: the service public URL and the certificate resolver annotation and set the entrypoint to
websecure
to use port 443 only. For example, for the frontend service :labels: - - traefik.http.routers.frontend.rule=Host(`localhost`) + - traefik.http.routers.frontend.rule=Host(`<YOUR_PUBLIC_HOST>`) + - traefik.http.routers.frontend.entrypoints=websecure
- Change any other service that referenced the changed host
-
rerun
docker compose up -d