-
Notifications
You must be signed in to change notification settings - Fork 29
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
wildduck config has breaking changes on non-breaking versioning #14
Comments
This looks to be an issue with wildduck itself, moving the issue. In the meantime you can add the new cors configuration, or use an older version. |
I looked into it a little. You could say that its an issue in the default configuration of the docker container (see
by appending [cors]
origins = ["*"] or by adding a nullish check origins: [].concat(config.api.cors?.origins ?? ['*']), |
Anyone upgrading wildduck with their old config would get the error as well, so definitely a wildduck issue heheh. I don't have much time right now, but feel free to send in a pr with a fix if you can fix it 😁 |
This makes the cors config table entirely optional, instead of previously just the origins key inside the cors table Resolves #331
alright |
This makes the cors config table entirely optional, instead of previously just the origins key inside the cors table Resolves #331
WildDuck is meant to be managed in a way where production config is merged (not replaced) with the default config. So the cors (or any other) key should be available if it is listed in the default config. wildduck-dockerized uses a fixed config which is a problem in this case as there are going to be new keys added to the config in the future as well. It should probably be kept up to date to reflect the new keys or it should merge config files. |
Hmm, I wasn't aware of this. That sounds like a bit of a nightmare to me. IMO a new required config option is a breaking change. I'll have to redo the way wildduck-dockerized manages the configs if that's the case. |
I've merged the latest wildduck config with the config in this repo. But I'll still have to find another way to do this in the future, so I'm keeping this issue open with another title. |
The text was updated successfully, but these errors were encountered: