Link ING and other European banks through Enable Banking

- Docker passes ENABLE_BANKING_APP_ID and ENABLE_BANKING_PRIVATE_KEY through
- transactions are keyed on entry_reference: Enable Banking says transaction_id
  may change between fetches, which imported rows twice
- a key pasted on one line keeps its own PEM label (PKCS#1 keys broke before)
- nginx keeps X-Forwarded-Proto/Host from a reverse proxy, so return links are https
- README: how to set up the app, the keys, and https if Enable Banking needs it

Checked against Enable Banking's API docs and tested end to end against a stand-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MangaValkandClaude Opus 5.5 committed 2026-11-17 15:16:53 +01:00
1 parent cc22098868
commit ea53718e5d
6 files changed
+101 -7

No files matched your search

+3
View File
@@ -52,6 +52,9 @@ services:
PLAID_ENV: ${PLAID_ENV:-sandbox}
PLAID_PRODUCTS: transactions
PLAID_COUNTRY_CODES: ${PLAID_COUNTRY_CODES:-US}
# Bank feed for Europe (ING and others): see "Link your bank" in the README. Off while empty.
ENABLE_BANKING_APP_ID: ${ENABLE_BANKING_APP_ID:-}
ENABLE_BANKING_PRIVATE_KEY: ${ENABLE_BANKING_PRIVATE_KEY:-}
# broke's server calls Supabase at PUBLIC_URL too, so the server must be able to reach its own address.
depends_on:
db:
+14 -2
View File
@@ -1,5 +1,17 @@
# One address for everything: broke, plus the two Supabase services it needs, on the same origin.
# The browser and broke's server both reach Supabase at PUBLIC_URL/auth/v1 and PUBLIC_URL/rest/v1.
# Behind a reverse proxy that does https (Nginx Proxy Manager, SWAG, Caddy...), keep what it says, so return links
# for bank feeds come out as https. Reached directly, it's this server's own scheme and host.
map $http_x_forwarded_proto $fwd_proto {
default $http_x_forwarded_proto;
"" $scheme;
}
map $http_x_forwarded_host $fwd_host {
default $http_x_forwarded_host;
"" $http_host;
}
server {
listen 80;
client_max_body_size 25m; # statement uploads
@@ -8,8 +20,8 @@ server {
proxy_set_header Host $http_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;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $fwd_proto;
proxy_set_header X-Forwarded-Host $fwd_host;
# Supabase Auth (GoTrue). Admin routes still need the service role key.
location /auth/v1/ {
+5
View File
@@ -67,6 +67,11 @@ BROKE_OFFLINE=1
LOCAL_LLM_BASE_URL=http://ollama:11434/v1
LOCAL_LLM_MODEL=
# Optional: link ING and other European banks through Enable Banking (see the README). The key goes on one line:
# awk 'NF {printf "%s", $0}' <app-id>.pem
# ENABLE_BANKING_APP_ID=
# ENABLE_BANKING_PRIVATE_KEY=
# Optional, US/Canada banks only. CSV import needs none of this.
# PLAID_CLIENT_ID=
# PLAID_SECRET=