configurations of hq services
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

configuration.nix 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Edit this configuration file to define what should be installed on
  2. # your system. Help is available in the configuration.nix(5) man page
  3. # and in the NixOS manual (accessible by running ‘nixos-help’).
  4. { config, pkgs, lib, ... }:
  5. {
  6. imports =
  7. [ ../../../lib/lxc-container.nix
  8. ../../../lib/shared.nix
  9. ../../../lib/admins.nix
  10. ];
  11. environment.systemPackages = with pkgs; [
  12. vim
  13. ];
  14. networking = {
  15. hostName = "logging";
  16. firewall = {
  17. allowedTCPPorts = [
  18. 22
  19. 9000
  20. 80
  21. 443
  22. 5044
  23. 12201
  24. 514
  25. ];
  26. allowedUDPPorts = [
  27. 514
  28. ];
  29. enable = false;
  30. };
  31. };
  32. services.openssh = {
  33. enable = true;
  34. permitRootLogin = "yes";
  35. };
  36. services.nginx = {
  37. enable = true;
  38. virtualHosts = {
  39. default = {
  40. locations = {
  41. "/".proxyPass = "http://127.0.0.1:9000/";
  42. };
  43. };
  44. };
  45. };
  46. services.graylog = {
  47. enable = true;
  48. passwordSecret = "SDwK3ug9U4gYSVtj3h22i0l57QO6p5RE58sNehAgU3vXgqGa2HuNyhL19vhoUKFqy28rqGfDQkRD5834NqPi5wLsy8H1hz5V";
  49. # mongo.serv.zentralwerk. ?
  50. elasticsearchHosts = [ "http://172.20.73.15:9200" ];
  51. rootPasswordSha2 = "3e784172684dcd89d66175b8719cd7894cc96b454ef1d5aa74bd92b3c57da7cd";
  52. # mongo.serv.zentralwerk. ?
  53. mongodbUri = "mongodb://172.20.73.14/graylog";
  54. extraConfig = ''
  55. http_bind_address = 0.0.0.0:9000
  56. elasticsearch_shards = 1
  57. allow_highlighting = true
  58. allow_leading_wildcard_searches = true
  59. '';
  60. user = "root";
  61. };
  62. systemd.services.graylog.serviceConfig.Restart = "always";
  63. system.stateVersion = "19.03"; # Did you read the comment?
  64. }