|
|
|
@ -169,22 +169,26 @@ in { |
|
|
|
|
users.users.matrix-registration = { |
|
|
|
|
home = matrix-reg-dir; |
|
|
|
|
createHome = true; |
|
|
|
|
isNormalUser = true; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
systemd.services.matrix-registration = let |
|
|
|
|
configFile = pkgs.writeText "matrix-reg-config.yaml" '' |
|
|
|
|
server_location: 'https://matrix.waffle.farm:443' |
|
|
|
|
base_url: 'waffle.farm' |
|
|
|
|
base_url: "" |
|
|
|
|
server_name: 'waffle.farm' |
|
|
|
|
shared_secret: '${secrets.matrix.registration_secret}' |
|
|
|
|
riot_instance: 'chat.waffle.farm' |
|
|
|
|
registration_shared_secret: '${secrets.matrix.registration_secret}' |
|
|
|
|
admin_api_shared_secret: '${secrets.matrix.admin_api_secret}' |
|
|
|
|
client_redirect: 'chat.waffle.farm' |
|
|
|
|
client_logo: 'static/images/element-logo.png' |
|
|
|
|
db: 'sqlite:///${matrix-reg-dir}/db.sqlite3' |
|
|
|
|
host: 'localhost' |
|
|
|
|
port: 5000 |
|
|
|
|
rate_limit: ["100 per day", "10 per minute"] |
|
|
|
|
rate_limit: ["1000 per day", "100 per minute"] |
|
|
|
|
allow_cors: false |
|
|
|
|
ip_logging: false |
|
|
|
|
logging: |
|
|
|
|
disable_existing_loggers: False |
|
|
|
|
disable_existing_loggers: false |
|
|
|
|
version: 1 |
|
|
|
|
root: |
|
|
|
|
level: DEBUG |
|
|
|
@ -202,6 +206,9 @@ logging: |
|
|
|
|
stream: ext://sys.stdout |
|
|
|
|
password: |
|
|
|
|
min_length: 8 |
|
|
|
|
username: |
|
|
|
|
validation_regex: [] #list of regexes that the selected username must match. Example: '[a-zA-Z]\.[a-zA-Z]' |
|
|
|
|
invalidation_regex: [] #list of regexes that the selected username must NOT match. Example: '(admin|support)' |
|
|
|
|
''; |
|
|
|
|
in { |
|
|
|
|
enable = true; |
|
|
|
@ -221,6 +228,7 @@ password: |
|
|
|
|
users.users.slackbridge = { |
|
|
|
|
home = slackbridge-dir; |
|
|
|
|
createHome = true; |
|
|
|
|
isNormalUser = true; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
systemd.services.matrix-appservice-slack = let |
|
|
|
|