diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-16 17:40:07 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-16 20:20:45 +0200 |
commit | 4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0 (patch) | |
tree | 9a7ede9ac3f1899074e9ef568a447f883191d3b5 /modules/private/websites/connexionswing/integration.nix | |
parent | da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2 (diff) | |
download | Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.tar.gz Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.tar.zst Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.zip |
Use attrs for secrets instead of lists
Diffstat (limited to 'modules/private/websites/connexionswing/integration.nix')
-rw-r--r-- | modules/private/websites/connexionswing/integration.nix | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/modules/private/websites/connexionswing/integration.nix b/modules/private/websites/connexionswing/integration.nix index f5b1a16..1b3587a 100644 --- a/modules/private/websites/connexionswing/integration.nix +++ b/modules/private/websites/connexionswing/integration.nix | |||
@@ -47,31 +47,28 @@ in { | |||
47 | phpPackage = pkgs.php72; | 47 | phpPackage = pkgs.php72; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | secrets.keys = [ | 50 | secrets.keys."websites/connexionswing/integration" = { |
51 | { | 51 | user = config.services.httpd.Inte.user; |
52 | dest = "websites/connexionswing/integration"; | 52 | group = config.services.httpd.Inte.group; |
53 | user = config.services.httpd.Inte.user; | 53 | permissions = "0400"; |
54 | group = config.services.httpd.Inte.group; | 54 | text = '' |
55 | permissions = "0400"; | 55 | # This file is auto-generated during the composer install |
56 | text = '' | 56 | parameters: |
57 | # This file is auto-generated during the composer install | 57 | database_host: ${secrets.mysql.host} |
58 | parameters: | 58 | database_port: ${secrets.mysql.port} |
59 | database_host: ${secrets.mysql.host} | 59 | database_name: ${secrets.mysql.database} |
60 | database_port: ${secrets.mysql.port} | 60 | database_user: ${secrets.mysql.user} |
61 | database_name: ${secrets.mysql.database} | 61 | database_password: ${secrets.mysql.password} |
62 | database_user: ${secrets.mysql.user} | 62 | database_server_version: ${pkgs.mariadb.mysqlVersion} |
63 | database_password: ${secrets.mysql.password} | 63 | mailer_transport: sendmail |
64 | database_server_version: ${pkgs.mariadb.mysqlVersion} | 64 | mailer_host: null |
65 | mailer_transport: sendmail | 65 | mailer_user: null |
66 | mailer_host: null | 66 | mailer_password: null |
67 | mailer_user: null | 67 | subscription_email: ${secrets.email} |
68 | mailer_password: null | 68 | allow_robots: true |
69 | subscription_email: ${secrets.email} | 69 | secret: ${secrets.secret} |
70 | allow_robots: true | 70 | ''; |
71 | secret: ${secrets.secret} | 71 | }; |
72 | ''; | ||
73 | } | ||
74 | ]; | ||
75 | 72 | ||
76 | services.websites.env.integration.vhostConfs.connexionswing_integration = { | 73 | services.websites.env.integration.vhostConfs.connexionswing_integration = { |
77 | certName = "integration"; | 74 | certName = "integration"; |