2023-10-02 22:48:18 +02:00
|
|
|
{ config, ... }:
|
2023-09-24 13:16:22 +02:00
|
|
|
|
2023-10-02 22:48:18 +02:00
|
|
|
let host = "demarches.dgnum.eu";
|
2023-09-24 13:16:22 +02:00
|
|
|
in {
|
|
|
|
imports = [ ./module.nix ];
|
|
|
|
|
|
|
|
services.demarches-simplifiees = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
secretFile = config.age.secrets.ds_fr-secret_file.path;
|
|
|
|
|
|
|
|
initialDeploymentDate = "20230923";
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
APP_HOST = host;
|
|
|
|
|
2023-09-26 20:46:38 +02:00
|
|
|
# Disable France Connect and Agent Connect
|
2023-09-24 13:16:22 +02:00
|
|
|
FRANCE_CONNECT_ENABLED = "disabled";
|
2023-09-26 20:46:38 +02:00
|
|
|
AGENT_CONNECT_ENABLED = "disabled";
|
2023-09-24 13:16:22 +02:00
|
|
|
|
|
|
|
# S3 storage setup
|
2023-09-26 20:46:38 +02:00
|
|
|
ACTIVE_STORAGE_SERVICE = "local";
|
2023-09-24 13:16:22 +02:00
|
|
|
S3_ENDPOINT = "https://s3.dgnum.eu";
|
|
|
|
S3_BUCKET = "demarches-dgnum";
|
|
|
|
S3_REGION = "garage";
|
|
|
|
S3_FORCE_PATH_STYLE = "true";
|
|
|
|
S3_ACCESS_KEY_ID = "GK4d244118eac2336ae0ab2dd9";
|
2023-10-02 22:48:18 +02:00
|
|
|
S3_SECRET_ACCESS_KEY =
|
|
|
|
"61100261fb0a0c861371596f9ffcd1e83134301a6d0c665a077135af04ba18c3";
|
2023-09-24 13:16:22 +02:00
|
|
|
|
|
|
|
# SAML_IDP_ENABLED = "enabled";
|
|
|
|
|
|
|
|
# Optional settings
|
|
|
|
APPLICATION_NAME = ''"Démarches normaliennes"'';
|
|
|
|
APPLICATION_SHORTNAME = "d-s.dgnum.eu";
|
|
|
|
APPLICATION_BASE_URL = "https://${host}";
|
|
|
|
|
|
|
|
# SMTP setup, TODO: Fix and stop using sendmail
|
|
|
|
CLASSIC_SMTP_ENABLED = "enabled";
|
|
|
|
SMTP_HOST = "kurisu.lahfa.xyz";
|
|
|
|
SMTP_PORT = "465";
|
|
|
|
SMTP_USER = "web-services@infra.dgnum.eu";
|
|
|
|
SMTP_TLS = "";
|
|
|
|
SMTP_SSL = "true";
|
|
|
|
SMTP_AUTHENTICATION = "plain";
|
|
|
|
|
|
|
|
SUPER_ADMIN_OTP_ENABLED = "disabled";
|
|
|
|
|
|
|
|
CONTACT_EMAIL = "demarches@infra.dgnum.eu";
|
|
|
|
EQUIPE_EMAIL = "equipe@infra.dgnum.eu";
|
|
|
|
TECH_EMAIL = "tech@infra.dgnum.eu";
|
2023-10-02 22:48:18 +02:00
|
|
|
NO_REPLY_EMAIL = ''"Ne pas répondre <demarches@infra.dgnum.eu>"'';
|
2023-09-24 13:16:22 +02:00
|
|
|
OLD_CONTACT_EMAIL = "";
|
|
|
|
CONTACT_PHONE = "";
|
|
|
|
|
|
|
|
# Customization
|
|
|
|
# HEADER_LOGO_SRC = "logo_ens_psl_couleur.png";
|
|
|
|
# HEADER_LOGO_ALT = "Par la Recherche, pour la Recherche";
|
|
|
|
# PROCEDURE_DEFAULT_LOGO_SRC = "logo_ens_psl_couleur.png";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-10-02 22:48:18 +02:00
|
|
|
dgn-secrets.matches."^ds_fr-.*$" = { owner = "ds-fr"; };
|
2023-09-24 13:16:22 +02:00
|
|
|
|
|
|
|
users.users.ds-fr.extraGroups = [ "sendmail" ];
|
|
|
|
}
|