Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files123456789101112131415161718192021222324252627282930313233343536373839FROM n8nio/n8n:latest# HF Spaces requires the app to listen on port 7860ENV N8N_PORT=7860ENV N8N_LISTEN_ADDRESS=0.0.0.0ENV N8N_PROTOCOL=httpsENV N8N_HOST=0.0.0.0ENV NODE_ENV=production# TimezoneENV GENERIC_TIMEZONE=Asia/KolkataENV TZ=Asia/Kolkata# Fixes login redirect loop issue on HF Spaces (proxy terminates SSL, n8n sees http)ENV N8N_SECURE_COOKIE=false# Enable task runners (avoids deprecation warning on latest n8n)ENV N8N_RUNNERS_ENABLED=true# Webhook / editor URL — update with your actual HF Space URL after first deployENV WEBHOOK_URL=https://sivakumar330-automations.hf.space/ENV N8N_EDITOR_BASE_URL=https://sivakumar330-automations.hf.space/# Supabase Postgres (Shared Pooler - Transaction mode, port 6543)ENV DB_TYPE=postgresdbENV DB_POSTGRESDB_HOST=aws-0-ap-northeast-1.pooler.supabase.comENV DB_POSTGRESDB_PORT=6543ENV DB_POSTGRESDB_DATABASE=postgresENV DB_POSTGRESDB_USER=postgres.bgwbygyyfypofatabqdyENV DB_POSTGRESDB_PASSWORD=Siva@4200n8nENV DB_POSTGRESDB_SCHEMA=publicENV DB_POSTGRESDB_SSL_ENABLED=trueENV DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false# Fixed keys — must stay same across restarts, else login/creds breakENV N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}ENV N8N_USER_MANAGEMENT_JWT_SECRET=${N8N_USER_MANAGEMENT_JWT_SECRET}EXPOSE 78601234567891011121314151617181920212223242526272829303132FROM n8nio/n8n:latestENV N8N_PORT=7860ENV N8N_LISTEN_ADDRESS=0.0.0.0ENV N8N_PROTOCOL=httpsENV N8N_HOST=0.0.0.0ENV NODE_ENV=productionENV GENERIC_TIMEZONE=Asia/KolkataENV TZ=Asia/KolkataENV N8N_SECURE_COOKIE=falseENV N8N_RUNNERS_ENABLED=trueENV WEBHOOK_URL=https://sivakumar330-automations.hf.space/ENV N8N_EDITOR_BASE_URL=https://sivakumar330-automations.hf.space/# fixes the X-Forwarded-For / trust proxy warningENV N8N_PROXY_HOPS=1# Supabase Postgres (Shared Pooler - Transaction mode, port 6543)ENV DB_TYPE=postgresdbENV DB_POSTGRESDB_HOST=aws-0-ap-northeast-1.pooler.supabase.comENV DB_POSTGRESDB_PORT=6543ENV DB_POSTGRESDB_DATABASE=postgresENV DB_POSTGRESDB_USER=postgres.bgwbygyyfypofatabqdyENV DB_POSTGRESDB_SCHEMA=publicENV DB_POSTGRESDB_SSL_ENABLED=trueENV DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false# DON'T hardcode secrets in Dockerfile — pass them at runtime via HF Space secretsEXPOSE 7860
Dockerfile+4-11