- Sponsor lookup popup can now link an existing sponsor (dropdown + pre-fill) or create a new one; save upserts the sponsor linked to the contact and sets the registration type to sponsor. - Remove the Interfaces feature end-to-end: admin nav button + Sync view, sync API helpers + SyncRun type, sync-trigger Edge Function, mock-api + its docker-compose service, and a migration dropping the sync RPCs, helpers, and sync_runs table. - Update docs (architecture, backend, frontend, README, roadmap, next-steps). Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
87 lines
3.0 KiB
Plaintext
87 lines
3.0 KiB
Plaintext
# Convivo Admin app — nginx server block (template).
|
|
#
|
|
# Serves the built SPA and proxies the Supabase same-origin paths
|
|
# (/auth, /rest, /realtime, /storage) to the Supabase core.
|
|
#
|
|
# The proxy target is injected at container start by /docker-entrypoint.sh
|
|
# from the SUPABASE_PROXY_TARGET env var (default: supabase_kong_Convivo:8000,
|
|
# i.e. the Kong container on the shared Supabase network — Kong's internal port).
|
|
#
|
|
# The placeholder __SUPABASE_PROXY_TARGET__ is replaced before nginx starts.
|
|
|
|
server {
|
|
listen 3001;
|
|
server_name _;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
gzip on;
|
|
gzip_types text/plain text/css application/json application/javascript image/svg+xml;
|
|
|
|
# SPA fallback: any non-file, non-proxied route serves index.html so the
|
|
# client-side router can take over.
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Long-cache immutable build assets.
|
|
location /assets/ {
|
|
expires 30d;
|
|
add_header Cache-Control "public, immutable";
|
|
try_files $uri =404;
|
|
}
|
|
|
|
# ---- Supabase same-origin proxy -------------------------------------
|
|
# No trailing slash on proxy_pass => the original URI is passed through
|
|
# unchanged (e.g. /auth/v1/token -> http://<target>/auth/v1/token).
|
|
|
|
location /auth/ {
|
|
proxy_pass http://__SUPABASE_PROXY_TARGET__;
|
|
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;
|
|
}
|
|
|
|
location /rest/ {
|
|
proxy_pass http://__SUPABASE_PROXY_TARGET__;
|
|
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;
|
|
}
|
|
|
|
# Realtime uses WebSockets — enable the upgrade handshake.
|
|
location /realtime/ {
|
|
proxy_pass http://__SUPABASE_PROXY_TARGET__;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
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;
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
}
|
|
|
|
location /storage/ {
|
|
proxy_pass http://__SUPABASE_PROXY_TARGET__;
|
|
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;
|
|
client_max_body_size 50M;
|
|
}
|
|
|
|
# Edge Functions.
|
|
location /functions/ {
|
|
proxy_pass http://__SUPABASE_PROXY_TARGET__;
|
|
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;
|
|
}
|
|
}
|