Skip to content

improve environment variable handling

Compare
Choose a tag to compare
@yahesh yahesh released this 17 Aug 12:10
· 4 commits to main since this release

Changelog

  • fix non-greedyness of RegExes
  • rewrite environment variable handling
  • introduce placeholder support for configuration
  • drop require-sri-for from Content-Security-Policy

Migration

New repository structure

The application files are now located in the ./html/ folder.

During a manual setup you only need to deploy the contents of that folder.

Alternatively, you can set that folder as the root directory of your webserver's virtual host.

New execution flag

In case you still have

  if (!defined("SYS11_SECRETS")) { die(""); }

in your configuration file then please change this to

  if (!defined("SHARED_SECRETS")) { die(""); }

The constant SYS11_SECRETS is deprecated and will be removed in the future.

New configuration function

In case you still define the configuration values in your configuration file with

  define(...);

then please change this to

 config(...);

which is needed to support the configuration via environment variables.

IMPRINT_TEXT

You cannot set the IMPRINT_TEXT configuration value to null anymore. Please set a value like

  config("IMPRINT_TEXT", "Who provides this service?");

Alternatively, you can comment out the configuration value to use the default value.

SECRET_SHARING_URL

The SECRET_SHARING_URL configuration value has been renamed to SERVICE_URL. Please set a value like

  config("SERVICE_URL", "http://127.0.0.1/");

The SECRET_SHARING_URL configuration value is deprecated and will be removed in the future.