### Postgres DB Setup (Portainer) Source: https://decapbridge.com/docs/self-hosting Environment variables for setting up a Postgres database container using Portainer. `POSTGRES_HOST_AUTH_METHOD=trust` can be used for simpler setups, or set `POSTGRES_PASSWORD`. ```bash POSTGRES_DB=directus POSTGRES_USER=postgres POSTGRES_HOST_AUTH_METHOD=trust ``` -------------------------------- ### Gateway Container Setup (Coolify) Source: https://decapbridge.com/docs/self-hosting Configuration for the Gateway container using Coolify. Requires setting a `GITGATEWAY_JWT_SECRET` for secure communication. ```bash PORT=8081 GITGATEWAY_JWT_SECRET=$(openssl rand -hex 32) ``` -------------------------------- ### API Container Setup (Coolify) Source: https://decapbridge.com/docs/self-hosting Configuration for the API container using Coolify. Requires a `SECRET` matching the Gateway's `GITGATEWAY_JWT_SECRET` and a volume mount for uploads. ```bash SECRET= ``` -------------------------------- ### Configure SSO Providers Source: https://decapbridge.com/docs/self-hosting Environment variable configurations for Google and Microsoft OpenID Connect authentication. ```bash AUTH_PROVIDERS=google AUTH_GOOGLE_DRIVER=openid AUTH_GOOGLE_CLIENT_ID=your-google-client-id AUTH_GOOGLE_CLIENT_SECRET=your-google-client-secret AUTH_GOOGLE_ISSUER_URL=https://accounts.google.com AUTH_GOOGLE_IDENTIFIER_KEY=email ``` ```bash AUTH_PROVIDERS=microsoft AUTH_MICROSOFT_DRIVER=openid AUTH_MICROSOFT_CLIENT_ID=your-microsoft-client-id AUTH_MICROSOFT_CLIENT_SECRET=your-microsoft-client-secret AUTH_MICROSOFT_ISSUER_URL=https://login.microsoftonline.com/your-tenant-id/v2.0/.well-known/openid-configuration AUTH_MICROSOFT_IDENTIFIER_KEY=email ``` -------------------------------- ### Configure License Key Source: https://decapbridge.com/docs/self-hosting Set the commercial license key as an environment variable in the API container. ```bash DECAPBRIDGE_LICENSE_KEY=key-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.xxxxxxxxxxxxxx ``` -------------------------------- ### Web Container Environment Variables Source: https://decapbridge.com/docs/self-hosting Environment variables for the Web container to configure the frontend appearance and behavior. These variables define the site's URL, name, logo, and theme. ```bash VITE_DECAPBRIDGE_SITE_URL=https://login.mycompany.com VITE_DECAPBRIDGE_API_URL=https://auth.mycompany.com VITE_DECAPBRIDGE_GATEWAY_URL=https://gateway.mycompany.com VITE_DECAPBRIDGE_SITE_NAME=My Company sites login portal VITE_DECAPBRIDGE_SITE_LOGO=/logo.svg VITE_DECAPBRIDGE_THEME_COLOR=#e64980 VITE_DECAPBRIDGE_THEME_RADIUS=xl ``` -------------------------------- ### Configure Email Transports Source: https://decapbridge.com/docs/self-hosting Environment variable configurations for various email service providers. ```bash EMAIL_TRANSPORT=smtp EMAIL_FROM=no-reply@mycompany.com EMAIL_SMTP_HOST=smtp.example.com EMAIL_SMTP_PORT=587 EMAIL_SMTP_USER=your-smtp-user EMAIL_SMTP_PASSWORD=your-smtp-password EMAIL_SMTP_SECURE=false ``` ```bash EMAIL_TRANSPORT=mailgun EMAIL_FROM=no-reply@mycompany.com EMAIL_MAILGUN_API_KEY=your-mailgun-api-key EMAIL_MAILGUN_DOMAIN=mg.mycompany.com ``` ```bash EMAIL_TRANSPORT=ses EMAIL_FROM=no-reply@mycompany.com EMAIL_SES_REGION=us-east-1 EMAIL_SES_CREDENTIALS__ACCESS_KEY_ID=your-access-key-id EMAIL_SES_CREDENTIALS__SECRET_ACCESS_KEY=your-secret-access-key ``` ```bash EMAIL_TRANSPORT=sendmail EMAIL_FROM=no-reply@mycompany.com ``` -------------------------------- ### Create Decap CMS admin index.html Source: https://decapbridge.com/docs/getting-started The standard HTML structure for the Decap CMS admin entry point, placed in the admin folder of your public assets directory. ```html My-website Admin page ``` -------------------------------- ### API Container Environment Variables Source: https://decapbridge.com/docs/self-hosting Environment variables for the API container to customize branding and functionality. Ensure `SECRET` matches `GITGATEWAY_JWT_SECRET` from the Gateway container. ```bash PROJECT_URL=https://login.mycompany.com PROJECT_NAME="My Company" PROJECT_COLOR=#e64980 PROJECT_LOGO=https://mycompany.com/logo.png ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.