Nextcloud: Difference between revisions
m →Dynamic configuration: clarification on how those options are normally set |
|||
| Line 229: | Line 229: | ||
=== Dynamic configuration === | === Dynamic configuration === | ||
Unfortunately, some options can only be set 'interactively' in the database, and not via the configuration file. One way to | Unfortunately, some options can only be set 'interactively' in the database (either through the nextcloud-occ command line tool or the web UI), and not via the configuration file. One way to manage them "semi-declaratively" is to register a systemd script to reset the options on each redeploy: | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
| Line 246: | Line 246: | ||
wantedBy = [ "multi-user.target" ]; | wantedBy = [ "multi-user.target" ]; | ||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight>Of course this is not ideal: changes through the web interface or occ client are still possible but will be overwritten the next redeploy, and removing a line from the script will not remove it from the configuration. | ||
== Maintenance == | == Maintenance == | ||