Skyler Grey | 0cebca0 | 2024-04-18 10:43:34 +0000 | [diff] [blame^] | 1 | { config, ... }: { |
| 2 | services.redis.servers."transplace-logger" = { |
| 3 | enable = true; |
| 4 | |
| 5 | openFirewall = true; |
| 6 | |
| 7 | bind = "0.0.0.0"; |
| 8 | port = 6379; |
| 9 | |
| 10 | requirePassFile = config.sops.secrets.transplace_logger_redis_password.path; |
| 11 | }; |
| 12 | |
| 13 | sops.secrets.transplace_logger_redis_password = { |
| 14 | mode = "0600"; |
| 15 | owner = config.users.users.root.name; |
| 16 | group = config.users.users.root.group; |
| 17 | sopsFile = ../../secrets/transplace-logger.json; |
| 18 | format = "json"; |
| 19 | }; |
| 20 | } |