ENV={{ env }}

# node
NODE_ENV=production
API_PORT=4000
UI_PORT=8080
DOC_PORT=80
STORYBOOK_PORT=80
OAUTH_PORT=4180
KEYCLOAK_PORT=8080

# url du serveur (docker compose)
API_HOST=api.{{ base_host }}
API_URL=https://api.{{ base_host }}

OAUTH_HOST={{ base_host }}
OAUTH_URL=https://{{ base_host }}

KEYCLOAK_HOST=auth.{{ base_host }}
KEYCLOAK_LOGOUT_URL=https://auth.{{ base_host }}/realms/Camino/protocol/openid-connect/logout
KEYCLOAK_RESET_PASSWORD_URL=https://auth.{{ base_host }}/realms/Camino/protocol/openid-connect/auth

# tokens jwt
# attention il faut garder les doubles "" pour interpréter correctement les retours à la ligne
JWT_SECRET="-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxxWXL49hPNv4CTPTXwfm28qOzH/j1nDkXKMPiwK0d8w2tUyQAGPv44eb07jdaIx1n55/61nlC5KgaPQCqaoTSIW5l7pCMKeyY4F/bWSKmlOTZChAYsQdtjmrBpZZqTHVcEARUl9IibL1Fji0g2k4rxNm8mGrfhjh+hOR/oeNPY78/0eihVnMPApQAyV/G64PLUhLYYXd980q2HDJcM04ead5T0O6C6ADzevgGI1shY1yKQyZedBGin/ZMkZ86C5QVO6gejFlF+ngKdOkoZZyNDnZZAa7fFjZV54ujI80Jv2ZVTH/xnsQJ2VKssHvh6QrowOjIDrRRR+CQxAp3zOpjwIDAQAB\n-----END PUBLIC KEY-----"
JWT_SECRET_ALGORITHM='RS256'
KEYCLOAK_CLIENT_ID={{ keycloak_client_id }}
KEYCLOAK_CLIENT_SECRET={{ keycloak_client_secret }}

KEYCLOAK_API_CLIENT_ID={{ keycloak_api_client_id }}
KEYCLOAK_API_CLIENT_SECRET={{ keycloak_api_client_secret }}
KEYCLOAK_URL=https://auth.{{ base_host }}

OAUTH2_COOKIE_SECRET={{ oauth2_cookie_secret }}

DOC_HOST=docs.{{ base_host }}
DOC_URL=https://docs.{{ base_host }}

# certificat ssh (docker compose)
LETSENCRYPT_EMAIL=camino@beta.gouv.fr

# postgres
PGHOST=localhost
PGPORT=5432
PGDATABASE=camino
PGUSER={{ pg_user }}
PGPASSWORD={{ pg_password }}

# admin
ADMIN_EMAIL=camino@beta.gouv.fr


# API Mailjet
API_MAILJET_REPLY_TO_EMAIL=camino@beta.gouv.fr
API_MAILJET_EMAIL=contact@camino.beta.gouv.fr
API_MAILJET_KEY={{ mailjet_key }}
API_MAILJET_SECRET={{ mailjet_secret }}
API_MAILJET_SERVER=in-v3.mailjet.com
API_MAILJET_EXPLOITANTS_GUYANE_LIST_ID={{ mailjet_exploitants_guyane_list_id }}

# API Administration
API_ADMINISTRATION_URL="https://etablissements-publics.api.gouv.fr"

# API Insee
API_INSEE_KEY={{ api_insee_key }}
API_INSEE_SECRET={{ api_insee_secret }}
API_INSEE_URL="https://api.insee.fr"

# API Matomo
API_MATOMO_URL="https://audience-sites.din.developpement-durable.gouv.fr"
API_MATOMO_ID=1667

API_SENTRY_URL={{ api_sentry_url }}
