Selaa lähdekoodia

Sessions and realms are optional

pull/969/head
Yannick Goossens 5 vuotta sitten
vanhempi
commit
188314cb66
2 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. +2
    -2
      roles/matrix-bot-go-neb/defaults/main.yml
  2. +4
    -0
      roles/matrix-bot-go-neb/templates/config.yaml.j2

+ 2
- 2
roles/matrix-bot-go-neb/defaults/main.yml Näytä tiedosto

@@ -68,7 +68,7 @@ matrix_bot_go_neb_clients: {}
# Delete or modify this list as appropriate. # Delete or modify this list as appropriate.
# See the docs for /configureAuthRealm for the full list of options: # See the docs for /configureAuthRealm for the full list of options:
# https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ConfigureAuthRealmRequest # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ConfigureAuthRealmRequest
matrix_bot_go_neb_realms: {}
#matrix_bot_go_neb_realms:
# - ID: "github_realm" # - ID: "github_realm"
# Type: "github" # Type: "github"
# Config: {} # No need for client ID or Secret as Go-NEB isn't generating OAuth URLs # Config: {} # No need for client ID or Secret as Go-NEB isn't generating OAuth URLs
@@ -78,7 +78,7 @@ matrix_bot_go_neb_realms: {}
# The full list of options are shown below: there is no single HTTP endpoint # The full list of options are shown below: there is no single HTTP endpoint
# which maps to this section. # which maps to this section.
# https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#Session # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#Session
matrix_bot_go_neb_sessions: {}
#matrix_bot_go_neb_sessions:
# - SessionID: "your_github_session" # - SessionID: "your_github_session"
# RealmID: "github_realm" # RealmID: "github_realm"
# UserID: "@YOUR_USER_ID:{{ matrix_domain }}" # This needs to be the username of the person that's allowed to use the !github commands # UserID: "@YOUR_USER_ID:{{ matrix_domain }}" # This needs to be the username of the person that's allowed to use the !github commands


+ 4
- 0
roles/matrix-bot-go-neb/templates/config.yaml.j2 Näytä tiedosto

@@ -25,16 +25,20 @@ clients:
# Delete or modify this list as appropriate. # Delete or modify this list as appropriate.
# See the docs for /configureAuthRealm for the full list of options: # See the docs for /configureAuthRealm for the full list of options:
# https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ConfigureAuthRealmRequest # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ConfigureAuthRealmRequest
{% if matrix_bot_go_neb_realms is defined %}
realms: realms:
{{ matrix_bot_go_neb_realms|to_json }} {{ matrix_bot_go_neb_realms|to_json }}
{% endif %}


# The list of *authenticated* sessions which Go-NEB is aware of. # The list of *authenticated* sessions which Go-NEB is aware of.
# Delete or modify this list as appropriate. # Delete or modify this list as appropriate.
# The full list of options are shown below: there is no single HTTP endpoint # The full list of options are shown below: there is no single HTTP endpoint
# which maps to this section. # which maps to this section.
# https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#Session # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#Session
{% if matrix_bot_go_neb_sessions is defined %}
sessions: sessions:
{{ matrix_bot_go_neb_sessions|to_json }} {{ matrix_bot_go_neb_sessions|to_json }}
{% endif %}


# The list of services which Go-NEB is aware of. # The list of services which Go-NEB is aware of.
# Delete or modify this list as appropriate. # Delete or modify this list as appropriate.


Ladataan…
Peruuta
Tallenna