Invoiceplane: Difference between revisions

imported>Onny
mNo edit summary
imported>Onny
Add security notes on disable setup wizard
Line 10: Line 10:


After that Invoiceplane will be available at http://localhost . Complete the setup by choosing your default language and setting up your user profile.
After that Invoiceplane will be available at http://localhost . Complete the setup by choosing your default language and setting up your user profile.
It is recommended to disable the setup wizard after installation is complete. Add following arguments to the settings option:
{{note|The <code>settings</code> option is not yet available in the stable release channel and will be available with NixOS 24.05.}}
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.invoiceplane.sites."localhost".settings = {
  DISABLE_SETUP=true;
  SETUP_COMPLETED=true;
};
</nowiki>}}


== Configuration ==
== Configuration ==
Line 84: Line 95:
=== Upgrading to new versions ===
=== Upgrading to new versions ===


After upgrading to a new version of Invoiceplane, change following two lines of your Invoiceplane config. The path to the file
After upgrading to a new version of Invoiceplane, change following two lines of your Invoiceplane config to re-enable the setup wizard, required for database upgrades.
<code>ipconfig.php</code> depends on the hostname you configured.
 
{{file|/var/lib/invoiceplane/localhost/ipconfig.php|nix|<nowiki>
{{note|The <code>settings</code> option is not yet available in the stable release channel and will be available with NixOS 24.05.}}
DISABLE_SETUP=false
 
SETUP_COMPLETED=false
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.invoiceplane.sites."localhost".settings = {
  DISABLE_SETUP=false;
  SETUP_COMPLETED=false;
};
</nowiki>}}
</nowiki>}}


Access your Invoiceplane instance again in your browser and rerun the setup wizard which now reappears. After upgrading the tables you can login as usual. It is now recommended to change both variables in the config file above back to <code>true</code>.
Access your Invoiceplane instance again in your browser and rerun the setup. After upgrading the tables you can login as usual. It is now recommended to change both variables in the config file above back to <code>true</code>.


== See also ==
== See also ==