-
Notifications
You must be signed in to change notification settings - Fork 42
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
choose server_name at installation #92
Comments
I tried to understand what would need to change in files to take in account the choice of server_name at install and I've made some modifications. As I'm new, I hope I didn't make mistakes and what I did is understandable. |
I would have been interested in that, too. @Thatoo From what I've been told, it's not possible to change this parameter, unless you do a complete reinstall and loose data and federation. So it's basically a start from crash. Adding a server_name parameter (with short description of what it implies) at installation doesn't seem too complicated. |
You can do it if you want... |
I had this same understanding too so I decided to keep on with what I have already. I found how to make comparisons. Here they are : |
@gnouts did you succeed to make it working. If it's set before matrix 1.0, it might be an idea to make a reinstall when 1.0 releases. |
@Josue-T did you have time to glance what I did. I'd like to know if I was on the good track or if I was doing nonsense. |
@Thatoo , maybe you can create one PR with your patch. Because, as I see it's not bad, but some other change are also needed... and with a PR it' more easy to discuss about some part of code. Sorry but I quite busy these time... |
@Thatoo I did some hack and managed to get a working synapse install with my account being |
gnouts wrote the PR faster than me. |
I have a problem with the update script : #136 |
Withe the PR of @gnouts, #119 and mine, #136, it is possible to have this server_name option at install. |
Closed by #119 |
I was reading synapse documentation and I discovered that the server_name could be different than the real address of the server. It is explain here : https://github.com/matrix-org/synapse#setting-up-federation
So we can run a server at synapse.example.com, but have our Matrix user-ids look like @user:example.com instead of @user:synapse.example.com .
It could be pretty cool for yunohost admin to be able to choose the server_name before install and then when the install is finish, to get the correct SRV record to put in the DNS record of his/her registrar's interface. and also the homeserver.yaml being already set with the desired server_name.
I know I would have loved that!
Now, I don't dare to make the change of my homeserver.yaml because of that sentence : "If you've already started Synapse and a database has been created, you will have to recreate the database."
I'm afraid all users loose their data. I don't know what imply to recreate the database. Will users loose their data? the ID and key device check (for encryption...)?
And first of all, I don't know how to recreate this database.
I guess, this would be a very welcomed enhancement.
The text was updated successfully, but these errors were encountered: