pulled ghcr.io/securo-finance/securo-backend:0.18.0 809 MB ghcr.io/securo-finance/securo-backend@sha256:9f050a7ac5dabfe6c53b89a08a5bd4c1cf5758e057c19359bda59e7cc74e212e
pulled ghcr.io/securo-finance/securo-frontend:0.18.0 69 MB ghcr.io/securo-finance/securo-frontend@sha256:6a0d726085cf6b67898c3dbb2b53e7949dfeeb8479ec8d45046a5cc0169ead01
pulled pgvector/pgvector:0.8.7-pg16 456 MB pgvector/pgvector@sha256:484e838076e04939d27d3e176e91c86eea96236126023be8d3059761122e579f
pulled redis:8.10.3-alpine 120 MB redis@sha256:7958cfbb9d152f87dadfbc89f1b0b15938f0b81ff8982feb327476f4911935c3
pulled ghcr.io/securo-finance/securo-backend:0.17.0 809 MB ghcr.io/securo-finance/securo-backend@sha256:9c91bd1172ae0e52a556dd74d9e137d35f8176b8ad67ae3ed6715d83a48af5b3
pulled ghcr.io/securo-finance/securo-frontend:0.17.0 69 MB ghcr.io/securo-finance/securo-frontend@sha256:4d3a99c6d8862b8bfd31b345b2777ec94b410d00faa0759618988c30b5b4b9e5
ghcr.io/securo-finance/securo-backend:0.18.0 wget: 
ghcr.io/securo-finance/securo-backend:0.18.0 curl: 
ghcr.io/securo-finance/securo-backend:0.18.0 node: 
ghcr.io/securo-finance/securo-backend:0.18.0 python3: /usr/local/bin/python3
ghcr.io/securo-finance/securo-backend:0.18.0 python: /usr/local/bin/python
ghcr.io/securo-finance/securo-backend:0.18.0 sh: /usr/bin/sh
ghcr.io/securo-finance/securo-backend:0.18.0 bash: /usr/bin/bash
ghcr.io/securo-finance/securo-backend:0.18.0 pg_isready: 
ghcr.io/securo-finance/securo-frontend:0.18.0 wget: /usr/bin/wget
ghcr.io/securo-finance/securo-frontend:0.18.0 curl: /usr/bin/curl
ghcr.io/securo-finance/securo-frontend:0.18.0 node: 
ghcr.io/securo-finance/securo-frontend:0.18.0 python3: 
ghcr.io/securo-finance/securo-frontend:0.18.0 python: 
ghcr.io/securo-finance/securo-frontend:0.18.0 sh: /bin/sh
ghcr.io/securo-finance/securo-frontend:0.18.0 bash: 
ghcr.io/securo-finance/securo-frontend:0.18.0 pg_isready: 
== ghcr.io/securo-finance/securo-backend:0.18.0
User= Entrypoint=null Cmd=["uvicorn","app.main:app","--host","0.0.0.0","--port","8000"] Workdir=/app Ports={"8000/tcp":{}} Volumes=null Health=null
PYTHON_VERSION=3.14.10

== ghcr.io/securo-finance/securo-frontend:0.18.0
User=101 Entrypoint=["/docker-entrypoint.sh"] Cmd=["nginx","-g","daemon off;"] Workdir=/ Ports={"8080/tcp":{}} Volumes=null Health=null
NGINX_VERSION=1.31.7
PKG_RELEASE=1
DYNPKG_RELEASE=1
NJS_VERSION=1.0.2
NJS_RELEASE=1
NGINX_ENTRYPOINT_LOCAL_RESOLVERS=1

== frontend entrypoint dir
total 32
drwxr-xr-x    1 root     root          4096 Nov  6 19:56 .
drwxr-xr-x    1 root     root          4096 Nov 15 12:12 ..
-rwxr-xr-x    1 root     root          2146 Oct 19 00:37 10-listen-on-ipv6-by-default.sh
-rwxr-xr-x    1 root     root           389 Oct 19 00:37 15-local-resolvers.envsh
-rwxr-xr-x    1 root     root           673 Nov  6 19:55 19-resolver.envsh
-rwxr-xr-x    1 root     root          3010 Oct 19 00:37 20-envsubst-on-templates.sh
-rwxr-xr-x    1 root     root          4619 Oct 19 00:37 30-tune-worker-processes.sh
#!/bin/sh
# vim:sw=4:ts=4:et

set -e

entrypoint_log() {
    if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
        echo "$@"
    fi
}

if [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ]; then
    if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -maxdepth 1 -type f -print -quit 2>/dev/null | read v; then
        entrypoint_log "$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration"

        entrypoint_log "$0: Looking for shell scripts in /docker-entrypoint.d/"
        find "/docker-entrypoint.d/" -follow -type f -print | sort -V | while read -r f; do
            case "$f" in
                *.envsh)
                    if [ -x "$f" ]; then
                        entrypoint_log "$0: Sourcing $f";
                        . "$f"
                    else
                        # warn on shell scripts without exec bit
                        entrypoint_log "$0: Ignoring $f, not executable";
                    fi
                    ;;
                *.sh)
                    if [ -x "$f" ]; then
                        entrypoint_log "$0: Launching $f";
                        "$f"
                    else
                        # warn on shell scripts without exec bit
                        entrypoint_log "$0: Ignoring $f, not executable";
                    fi
                    ;;
                *) entrypoint_log "$0: Ignoring $f";;
            esac
        done

        entrypoint_log "$0: Configuration complete; ready for start up"
    else
        entrypoint_log "$0: No files found in /docker-entrypoint.d/, skipping configuration"
    fi
fi

exec "$@"
== frontend templates
default.conf.template
server {
    listen 8080;
    root /usr/share/nginx/html;
    index index.html;
    # Attachments go up to STORAGE_MAX_FILE_SIZE_MB (10 MB); nginx's default limit is 1 MB.
    client_max_body_size 15m;

    # API proxy to backend.
    # Resolve the backend hostname at request time via Docker's embedded DNS
    # instead of caching the IP at startup. Without this, Nginx pins the
    # upstream IP when the config loads and returns 502s after the backend
    # container is recreated with a new IP (e.g. selective redeploys where the
    # frontend container is left running). Using a variable in proxy_pass forces
    # re-resolution. NGINX_RESOLVER is derived from the platform's own
    # /etc/resolv.conf at startup (see docker-entrypoint.d/19-resolver.envsh),
    # so this works as-is on Docker, Podman, Kubernetes and Railway. Set
    # NGINX_RESOLVER explicitly to override that detection.
    location /api/ {
        resolver ${NGINX_RESOLVER} valid=5s;
        set $upstream ${BACKEND_URL};
        proxy_pass $upstream;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    # Connecting a bank imports its whole history in this one request; a
    # SimpleFIN link with several institutions can take well over nginx's
    # default 60s read timeout, which turned a working import into a 504
    # "Failed to connect bank" (issue #1148).
    location = /api/connections/oauth/callback {
        resolver ${NGINX_RESOLVER} valid=5s;
        set $upstream ${BACKEND_URL};
        proxy_pass $upstream;
        proxy_read_timeout 300s;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    # Never cache index.html so new deployments are always picked up immediately
    location = /index.html {
        add_header Cache-Control "no-store, no-cache, must-revalidate";
        try_files $uri =404;
    }

    # SPA fallback — serve index.html for all non-file routes
    location / {
        try_files $uri $uri/ /index.html;
    }
}
