diff --git a/README.md b/README.md index ee7b24fec..2c71c6c9c 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,8 @@ Create the `config.json` file (see the [example](app/config-sample.json)) settin | IM_URL | Infrastructure Manager service URL | Y | N/A | | IM_TIMEOUT | Infrastructure Manager service calls timeout | N | 60 | | SUPPORT_EMAIL | Email address that will be shown in case of errors | N | "" | +| SUPPORT_LINK | Link that will be shown in case of errors | N | "" | +| SUPPORT_LINK_NAME | Text Link that that will be shown in case of errors | N | "" | | EXTERNAL_LINKS | List of dictionaries ({ "url": "example.com" , "menu_item_name": "Example link"}) specifying links that will be shown under the "External Links" menu | N | [] | | LOG_LEVEL | Set Logging level | N | info | | DB_URL | URL to the DB to store dashboard data | N | sqlite:///creds.db | diff --git a/app/__init__.py b/app/__init__.py index 93b1c40ff..ac8fef111 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1557,7 +1557,9 @@ def page_not_found(error): @app.errorhandler(500) def internal_server_error(error): app.logger.error('Server Error: %s', (error)) - return render_template('error_pages/500.html', support_email=app.config.get('SUPPORT_EMAIL')), 500 + return render_template('error_pages/500.html', support_email=app.config.get('SUPPORT_EMAIL'), + support_link=app.config.get('SUPPORT_LINK'), + support_link_name=app.config.get('SUPPORT_LINK_NAME')), 500 @app.errorhandler(CSRFError) def handle_csrf_error(e): diff --git a/app/templates/error_pages/500.html b/app/templates/error_pages/500.html index eb9882892..ed8b13a0c 100644 --- a/app/templates/error_pages/500.html +++ b/app/templates/error_pages/500.html @@ -19,7 +19,9 @@