You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
3.3 KiB

  1. # Go-NEB Configuration File
  2. #
  3. # This file provides an alternative way to configure Go-NEB which does not involve HTTP APIs.
  4. #
  5. # This file can be supplied to go-neb by the environment variable `CONFIG_FILE=config.yaml`.
  6. # It will force Go-NEB to operate in "config" mode. This means:
  7. # - Go-NEB will ONLY use the data contained inside this file.
  8. # - All of Go-NEB's /admin HTTP listeners will be disabled. You will be unable to add new services at runtime.
  9. # - The environment variable `DATABASE_URL` will be ignored and an in-memory database will be used instead.
  10. #
  11. # This file is broken down into 4 sections which matches the following HTTP APIs:
  12. # - /configureClient
  13. # - /configureAuthRealm
  14. # - /configureService
  15. # - /requestAuthSession (redirects not supported)
  16. # The list of clients which Go-NEB is aware of.
  17. # Delete or modify this list as appropriate.
  18. # See the docs for /configureClient for the full list of options.
  19. clients:
  20. - UserID: "@goneb:localhost"
  21. AccessToken: "MDASDASJDIASDJASDAFGFRGER"
  22. HomeserverURL: "http://localhost:8008"
  23. Sync: true
  24. AutoJoinRooms: true
  25. DisplayName: "Go-NEB!"
  26. - UserID: "@another_goneb:localhost"
  27. AccessToken: "MDASDASJDIASDJASDAFGFRGER"
  28. HomeserverURL: "http://localhost:8008"
  29. Sync: false
  30. AutoJoinRooms: false
  31. DisplayName: "Go-NEB!"
  32. # The list of realms which Go-NEB is aware of.
  33. # Delete or modify this list as appropriate.
  34. # See the docs for /configureAuthRealm for the full list of options.
  35. realms:
  36. - ID: "github_realm"
  37. Type: "github"
  38. Config:
  39. ClientSecret: "YOUR_CLIENT_SECRET"
  40. ClientID: "YOUR_CLIENT_ID"
  41. # The list of *authenticated* sessions which Go-NEB is aware of.
  42. # Delete or modify this list as appropriate.
  43. # The full list of options are shown below: there is no single HTTP endpoint
  44. # which maps to this section.
  45. sessions:
  46. - SessionID: "your_github_session"
  47. RealmID: "github_realm"
  48. UserID: "@YOUR_USER_ID:localhost"
  49. Config:
  50. # Populate these fields by generating a "Personal Access Token" on github.com
  51. AccessToken: "YOUR_GITHUB_ACCESS_TOKEN"
  52. Scopes: "admin:org_hook,admin:repo_hook,repo,user"
  53. # The list of services which Go-NEB is aware of.
  54. # Delete or modify this list as appropriate.
  55. # See the docs for /configureService for the full list of options.
  56. services:
  57. - ID: "giphy_service"
  58. Type: "giphy"
  59. UserID: "@goneb:localhost" # requires a Syncing client
  60. Config:
  61. APIKey: "qwg4672vsuyfsfe"
  62. - ID: "guggy_service"
  63. Type: "guggy"
  64. UserID: "@goneb:localhost" # requires a Syncing client
  65. Config:
  66. APIKey: "2356saaqfhgfe"
  67. - ID: "github_cmd_service"
  68. Type: "github"
  69. UserID: "@goneb:localhost" # requires a Syncing client
  70. Config:
  71. RealmID: "github_realm"
  72. - ID: "github_webhook_service"
  73. Type: "github-webhook"
  74. UserID: "@another_goneb:localhost"
  75. Config:
  76. RealmID: "github_realm"
  77. ClientUserID: "@YOUR_USER_ID:localhost"
  78. Rooms:
  79. "!someroom:id":
  80. Repos:
  81. "matrix-org/synapse":
  82. Events: ["push", "issues"]
  83. "matrix-org/dendron":
  84. Events: ["pull_request"]
  85. "!anotherroom:id":
  86. Repos:
  87. "matrix-org/synapse":
  88. Events: ["push", "issues"]
  89. "matrix-org/dendron":
  90. Events: ["pull_request"]