Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more database config options and other cleanup #1

Merged
merged 2 commits into from
Jul 9, 2022

Conversation

Cadair
Copy link

@Cadair Cadair commented Jun 29, 2022

No description provided.

matrix_mau_environment_variables_extension: ''
matrix_bot_database_uri: 'sqlite:///data/maubot.db'
matrix_bot_maubot_port: 29316
matrix_bot_maubot_secret: 'generate'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure this is a good default, but we should make it have a default.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the default for port and database are fine. I don't see why you added matrix_bot_maubot_secret as this should be set by a user and it would be unsafe to have a default value. We currently enforce the user to set it manually which is fine I think

matrix_mau_environment_variables_extension: ''
matrix_bot_database_uri: 'sqlite:///data/maubot.db'
matrix_bot_maubot_port: 29316
matrix_bot_maubot_secret: 'generate'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the default for port and database are fine. I don't see why you added matrix_bot_maubot_secret as this should be set by a user and it would be unsafe to have a default value. We currently enforce the user to set it manually which is fine I think

@Cadair
Copy link
Author

Cadair commented Jul 9, 2022

For some reason I can't leave this response in line.

It would be unsafe for everyone to have the same default value of the secret but why cant we generate a random one automatically?

With this setting maubot generates it's own, but I do wonder if that means it gets regenerated each time.

@moan0s
Copy link
Owner

moan0s commented Jul 9, 2022

Regarding the matrix_bot_maubot_secret: Sorry my bad - generate is a sensible default, thanks for the explanation

@moan0s moan0s merged commit be54af1 into moan0s:maubot_moanos Jul 9, 2022
moan0s pushed a commit that referenced this pull request Oct 22, 2022
add default for TG filter_mode
moan0s pushed a commit that referenced this pull request Jan 21, 2023
Fix Broken ma1sd Playbook Documentation Link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants