##// END OF EJS Templates
Authentication: cache plugins for auth and their settings in the auth_registry....
Authentication: cache plugins for auth and their settings in the auth_registry. - Before that change on each requests 4x we loaded plugins for authentication, this hit many caches, db invalidation context and loaded the plugins logic each time. This was a heavy performance hit for SVN and other backends as they needed to load that plugins many many times - Since Authentication plugins almost never change, we'll not store the plugins listed for authentication into the authnregistry for each process - For AuthPlugins settings we now also flush plugins settings, and authnregistry cached plugins

File last commit:

r3176:4660c673 default
r4220:5a873939 stable
Show More
README.rst
57 lines | 1.4 KiB | text/x-rst | RstLexer

Generate the Nix expressions

Details can be found in the repository of RhodeCode Enterprise CE inside of the file docs/contributing/dependencies.rst.

Start the environment as follows:

nix-shell pkgs/shell-generate.nix

Python dependencies

pip2nix generate --licenses
# or
nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses"

NodeJS dependencies

Generate node-packages.nix file with all dependencies from NPM and package.json file This should be run before entering nix-shell.

The sed at the end fixes a bug with http rewrite of re-generated packages

rm -rf node_modules &&
nix-shell pkgs/shell-generate.nix --command "
    node2nix --input package.json \
             -o pkgs/node-packages.nix \
             -e pkgs/node-env.nix \
             -c pkgs/node-default.nix \
             -d --flatten --nodejs-8 " &&
sed -i -e 's/http:\/\//https:\/\//g' pkgs/node-packages.nix

Generate license data

nix-build pkgs/license-generate.nix -o result-license && cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json