Installation scripts for SURF ResearchCloud catalog components
View the Project on GitHub UtrechtUniversity/researchcloud-items
Serves an arbitrary Flask app, which runs on localhost using uWSGI, using Nginx as a reverse proxy. The Flask app is installed from a public git repository. The role allows easily enabling authentication for your webapp, using SRAM and Single Sign-On.
flask_app_pip_pkg
variable to the name of the package that contains your app, so the role knows which of the dependencies in the requirements file is the app you want to run!The user can define:
flask_app_repo
), or by setting a PyPi package to install (flask_app_pip_pkg
).requirements.txt
or pyproject.toml
, relative to the root of the git repo. These will automatically be installedSee the role documentation for variables that you can set in this playbook, but note that the parameters are called differently: where the role parameter is called, e.g. flask_app_pip_pkg
, the parameter for this playbook is called flask_pip_pkg
.
Note: while individual uWSGI settings have their own variable, you can always use flask_uwsgi_config_block
to add arbitary settings:
flask_uwsgi_config_block
: String. Pass in arbitary key = value
settings with explicit newlines, e.g. foo = bar\nbar = foo
.2024-2025 Written by Dawa Ometto (Utrecht University)