Nextcloud: Difference between revisions

Raboof (talk | contribs)
Configuration: 'dynamic' configuration
Raboof (talk | contribs)
Line 228: Line 228:
Consider using a  [[Comparison of secret managing schemes|secret management tool]] instead of referencing an unencrypted local secrets file.
Consider using a  [[Comparison of secret managing schemes|secret management tool]] instead of referencing an unencrypted local secrets file.


==== Dynamic configuration ====
=== Dynamic configuration ===
Unfortunately, some options can only be set 'interactively' in the database, and not via the configuration file. One way to set them semi-declaratively is to register a systemd script to reset the options on each redeploy. 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.
Unfortunately, some options can only be set 'interactively' in the database, and not via the configuration file. One way to set them semi-declaratively is to register a systemd script to reset the options on each redeploy. 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.


Line 246: Line 246:
     wantedBy = [ "multi-user.target" ];
     wantedBy = [ "multi-user.target" ];
   };
   };
</syntaxHighlight>
</syntaxHighlight>


== Maintenance ==
== Maintenance ==