From ae46e6d382ca475cb540c8c7690b96bd226748b9 Mon Sep 17 00:00:00 2001 From: aronwk-aaron Date: Thu, 29 Dec 2022 15:10:36 -0600 Subject: [PATCH] remove analytics add note about securing it --- README.md | 9 ++++++--- app/__init__.py | 4 ---- app/settings_example.py | 3 --- app/templates/base.html.j2 | 30 ------------------------------ app/templates/ldd/ldd.html.j2 | 23 ----------------------- 5 files changed, 6 insertions(+), 63 deletions(-) diff --git a/README.md b/README.md index 85c3e85..d1f4166 100644 --- a/README.md +++ b/README.md @@ -65,14 +65,17 @@ * Reports how much currency that characters posses * U-Score: * Reports how much U-Score that characters posses - * Analytics: - * Provide reporting to Developers to help better solve issues - * Disabled by default. Set `ALLOW_ANALYTICS` to true to enable. # Deployment > **NOTE: This tutorial assumes you have a working DLU server instance and** > **some knowledge of Linux** + + +**It is highly recommended to setup a reverse proxy via nginx or some other tool and use ssl to secure your nexus dashboard instance** + * [How to setup nginx](https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-on-ubuntu-22-04) + * [How to use certbot for ssl](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-22-04) + ## Docker ```bash diff --git a/app/__init__.py b/app/__init__.py index e9003ca..efe36df 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -239,10 +239,6 @@ def register_settings(app): 'USER_REQUIRE_INVITATION', app.config['USER_REQUIRE_INVITATION'] ) - app.config['ALLOW_ANALYTICS'] = os.getenv( - 'ALLOW_ANALYTICS', - app.config['ALLOW_ANALYTICS'] - ) app.config['SQLALCHEMY_ENGINE_OPTIONS'] = { "pool_pre_ping": True, "pool_size": 10, diff --git a/app/settings_example.py b/app/settings_example.py index c0e1aa8..df7a992 100644 --- a/app/settings_example.py +++ b/app/settings_example.py @@ -16,9 +16,6 @@ CONFIG_LINK_TITLE = "" CONFIG_LINK_HREF = "" CONFIG_LINK_TEXT = "" -# Send Analytics for Developers to better fix issues -ALLOW_ANALYTICS = False - # Flask settings CSRF_ENABLED = True diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2 index 041dc0c..0f77181 100644 --- a/app/templates/base.html.j2 +++ b/app/templates/base.html.j2 @@ -84,36 +84,6 @@ - - {% if config.ALLOW_ANALYTICS %} - - - {% endif %} - {% endblock %} diff --git a/app/templates/ldd/ldd.html.j2 b/app/templates/ldd/ldd.html.j2 index 85cbdd4..3a07942 100644 --- a/app/templates/ldd/ldd.html.j2 +++ b/app/templates/ldd/ldd.html.j2 @@ -35,29 +35,6 @@ -{% if config.ALLOW_ANALYTICS %} - -{% endif %} - -{% if config.ALLOW_ANALYTICS %} - - -{% endif %} -