-
Couldn't load subscription status.
- Fork 2
Update .service, use upstream config, fix HOME. #2
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
Conversation
|
There are still some issues: Tests fail when there is a I'm not sure if I want the output in the journal since it includes the timestamp and is taking a lot of place. Is there a better logging output option if should we just write logs to a separate file like /var/log/gotify.log? |
Our config test ensures that the correct values will be extracted from the config file and environment variables. A globally defined config may change settings which are expected to have default values. See gotify/server-aur-git#2 (comment)
|
Yeah, we could add a redirect to file via systemd. Maybe /var/log/gotify/server.log because we also have a cli app which could log in the future. The test failure should be fixed with gotify/server#279 in the meantime we should disable check or exclude the config package. |
Our config test ensures that the correct values will be extracted from the config file and environment variables. A globally defined config may change settings which are expected to have default values. See gotify/server-aur-git#2 (comment)
- Add .install file to warn about default user - Dropped tmpfiles.d in favor of (recommended) ConfigurationDirectory, LogsDirectory, StateDirectory - Added `etc/gotify/config.yml` to `backup=()` - Build UI with `NODE_ENV=production` - Install config with 644 instead of 640 - Use absolute paths inside config - Create `gotify` user without home - Use `UMask=0027` instead of `0077` in service file - Add `emptydirs` to `options=()`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Our config test ensures that the correct values will be extracted from the config file and environment variables. A globally defined config may change settings which are expected to have default values. See gotify/server-aur-git#2 (comment)
Change removes local
config.ymland used the (patched) example config from upstream instead.Note: paths inside
/var/libchanged. (Need migration script?)Also a slightly hardened systemd service file, socket still missing. Let me know what matters in the end.