We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
i've just installed CISO on a new GNU/Linux server with docker.
i'm really not familiar with docker, my job is network more then system.
all the install was OK, but i have an ERROR 500 when i reach my domain.
i launch with:
docker compose up -d
my docker compose
services: backend: container_name: backend image: ghcr.io/intuitem/ciso-assistant-community/backend:latest restart: always environment: - ALLOWED_HOSTS=backend,work.vds.ovh - CISO_ASSISTANT_URL=https://work.mydomain.ovh:8443 - DJANGO_DEBUG=True - AUTH_TOKEN_TTL=7200 volumes: - ./db:/code/db
frontend: container_name: frontend environment: - PUBLIC_BACKEND_API_URL=http://backend:8000/api - PUBLIC_BACKEND_API_EXPOSED_URL=https://work.mydomain.ovh:8443/api - PROTOCOL_HEADER=x-forwarded-proto - HOST_HEADER=x-forwarded-host
image: ghcr.io/intuitem/ciso-assistant-community/frontend:latest depends_on: - backend
caddy: container_name: caddy image: caddy:2.8.4 environment: - CISO_ASSISTANT_URL=https://work.mydomain.ovh:8443 depends_on: - frontend restart: unless-stopped ports: - 8443:8443 volumes: - ./caddy_data:/data command: | sh -c 'echo $$CISO_ASSISTANT_URL "{ reverse_proxy /api/* backend:8000 reverse_proxy /* frontend:3000 tls /data/fullchain.pem /data/privkey.pem }" > Caddyfile && caddy run'
My certificates are from let's encrypt and copied from /etc/letsencrypt/live/work.mydomain.ovh/ to ~/ciso-assistant-community/caddy_data
What do i miss ? or made bad ?
the error is:
assistant_url=https://work.mydomain.ovh:8443 frontend | TypeError: fetch failed frontend | at node:internal/deps/undici/undici:13484:13 frontend | at process.processTicksAndRejections (node:internal/process/task_queues:105:5) frontend | at async ensureCsrfToken (file:///app/build/server/chunks/hooks.server-B5tn_cwW.js:29:22) frontend | at async Object.handle (file:///app/build/server/chunks/hooks.server-B5tn_cwW.js:71:3) frontend | at async respond (file:///app/build/server/index.js:3443:22) frontend | at async Array.ssr (file:///app/build/handler.js:1270:3) { frontend | [cause]: Error: connect ECONNREFUSED 172.18.0.2:8000 frontend | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1634:16) { frontend | errno: -111, frontend | code: 'ECONNREFUSED', frontend | syscall: 'connect', frontend | address: '172.18.0.2', frontend | port: 8000 frontend | } frontend | }
The text was updated successfully, but these errors were encountered:
eric-intuitem
No branches or pull requests
Hello,
i've just installed CISO on a new GNU/Linux server with docker.
i'm really not familiar with docker, my job is network more then system.
all the install was OK, but i have an ERROR 500 when i reach my domain.
i launch with:
docker compose up -d
my docker compose
services:
backend:
container_name: backend
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
restart: always
environment:
- ALLOWED_HOSTS=backend,work.vds.ovh
- CISO_ASSISTANT_URL=https://work.mydomain.ovh:8443
- DJANGO_DEBUG=True
- AUTH_TOKEN_TTL=7200
volumes:
- ./db:/code/db
frontend:
container_name: frontend
environment:
- PUBLIC_BACKEND_API_URL=http://backend:8000/api
- PUBLIC_BACKEND_API_EXPOSED_URL=https://work.mydomain.ovh:8443/api
- PROTOCOL_HEADER=x-forwarded-proto
- HOST_HEADER=x-forwarded-host
caddy:
container_name: caddy
image: caddy:2.8.4
environment:
- CISO_ASSISTANT_URL=https://work.mydomain.ovh:8443
depends_on:
- frontend
restart: unless-stopped
ports:
- 8443:8443
volumes:
- ./caddy_data:/data
command: |
sh -c 'echo $$CISO_ASSISTANT_URL "{
reverse_proxy /api/* backend:8000
reverse_proxy /* frontend:3000
tls /data/fullchain.pem /data/privkey.pem
}" > Caddyfile && caddy run'
My certificates are from let's encrypt and copied from
/etc/letsencrypt/live/work.mydomain.ovh/
to
~/ciso-assistant-community/caddy_data
What do i miss ? or made bad ?
the error is:
assistant_url=https://work.mydomain.ovh:8443
frontend | TypeError: fetch failed
frontend | at node:internal/deps/undici/undici:13484:13
frontend | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
frontend | at async ensureCsrfToken (file:///app/build/server/chunks/hooks.server-B5tn_cwW.js:29:22)
frontend | at async Object.handle (file:///app/build/server/chunks/hooks.server-B5tn_cwW.js:71:3)
frontend | at async respond (file:///app/build/server/index.js:3443:22)
frontend | at async Array.ssr (file:///app/build/handler.js:1270:3) {
frontend | [cause]: Error: connect ECONNREFUSED 172.18.0.2:8000
frontend | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1634:16) {
frontend | errno: -111,
frontend | code: 'ECONNREFUSED',
frontend | syscall: 'connect',
frontend | address: '172.18.0.2',
frontend | port: 8000
frontend | }
frontend | }
The text was updated successfully, but these errors were encountered: