mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-09 19:58:19 +00:00
remove analytics
add note about securing it
This commit is contained in:
parent
98c61bcaf1
commit
ae46e6d382
@ -65,14 +65,17 @@
|
|||||||
* Reports how much currency that characters posses
|
* Reports how much currency that characters posses
|
||||||
* U-Score:
|
* U-Score:
|
||||||
* Reports how much U-Score that characters posses
|
* 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
|
# Deployment
|
||||||
|
|
||||||
> **NOTE: This tutorial assumes you have a working DLU server instance and**
|
> **NOTE: This tutorial assumes you have a working DLU server instance and**
|
||||||
> **some knowledge of Linux**
|
> **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
|
## Docker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -239,10 +239,6 @@ def register_settings(app):
|
|||||||
'USER_REQUIRE_INVITATION',
|
'USER_REQUIRE_INVITATION',
|
||||||
app.config['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'] = {
|
app.config['SQLALCHEMY_ENGINE_OPTIONS'] = {
|
||||||
"pool_pre_ping": True,
|
"pool_pre_ping": True,
|
||||||
"pool_size": 10,
|
"pool_size": 10,
|
||||||
|
@ -16,9 +16,6 @@ CONFIG_LINK_TITLE = ""
|
|||||||
CONFIG_LINK_HREF = ""
|
CONFIG_LINK_HREF = ""
|
||||||
CONFIG_LINK_TEXT = ""
|
CONFIG_LINK_TEXT = ""
|
||||||
|
|
||||||
# Send Analytics for Developers to better fix issues
|
|
||||||
ALLOW_ANALYTICS = False
|
|
||||||
|
|
||||||
# Flask settings
|
# Flask settings
|
||||||
CSRF_ENABLED = True
|
CSRF_ENABLED = True
|
||||||
|
|
||||||
|
@ -84,36 +84,6 @@
|
|||||||
<script type="text/javascript" src="{{ url_for('static', filename='bootstrap-4.2.1/js/bootstrap.bundle.min.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='bootstrap-4.2.1/js/bootstrap.bundle.min.js') }}"></script>
|
||||||
<script type="text/javascript" src="{{ url_for('static', filename='datatables/datatables.min.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='datatables/datatables.min.js') }}"></script>
|
||||||
<script type="sytylesheet" src="{{ url_for('static', filename='datatables/datatables.min.css') }}"></script>
|
<script type="sytylesheet" src="{{ url_for('static', filename='datatables/datatables.min.css') }}"></script>
|
||||||
<script>
|
|
||||||
// set the active nav-link item
|
|
||||||
$(function () {
|
|
||||||
let target_nav = '#{{request.endpoint}}'.replace('\.', '-');
|
|
||||||
$(target_nav).addClass('active');
|
|
||||||
});
|
|
||||||
$(function () {
|
|
||||||
$('[data-toggle="tooltip"]').tooltip()
|
|
||||||
})
|
|
||||||
{% if config.ALLOW_ANALYTICS %}
|
|
||||||
// Matomo JS analytics
|
|
||||||
var _paq = window._paq = window._paq || [];
|
|
||||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
|
||||||
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
|
|
||||||
_paq.push(['trackPageView']);
|
|
||||||
_paq.push(['enableLinkTracking']);
|
|
||||||
(function() {
|
|
||||||
var u="https://matomo.aronwk.com/";
|
|
||||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
|
||||||
_paq.push(['setSiteId', '3']);
|
|
||||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
||||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
|
||||||
})();
|
|
||||||
{% endif %}
|
|
||||||
</script>
|
|
||||||
{% if config.ALLOW_ANALYTICS %}
|
|
||||||
<!-- Matomo no js analytics -->
|
|
||||||
<noscript><p><img src="https://matomo.aronwk.com/matomo.php?idsite=3&rec=1" style="border:0;" alt="" /></p></noscript>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -35,29 +35,6 @@
|
|||||||
|
|
||||||
<script type="text/javascript" src="{{ url_for('static', filename='lddviewer/base64-binary.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='lddviewer/base64-binary.js') }}"></script>
|
||||||
|
|
||||||
{% if config.ALLOW_ANALYTICS %}
|
|
||||||
<script>
|
|
||||||
// Matomo JS analytics
|
|
||||||
var _paq = window._paq = window._paq || [];
|
|
||||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
|
||||||
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
|
|
||||||
_paq.push(['trackPageView']);
|
|
||||||
_paq.push(['enableLinkTracking']);
|
|
||||||
(function() {
|
|
||||||
var u="https://matomo.aronwk.com/";
|
|
||||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
|
||||||
_paq.push(['setSiteId', '3']);
|
|
||||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
||||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if config.ALLOW_ANALYTICS %}
|
|
||||||
<!-- Matomo no js analytics -->
|
|
||||||
<noscript><p><img src="https://matomo.aronwk.com/matomo.php?idsite=3&rec=1" style="border:0;" alt="" /></p></noscript>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<script type='module'>
|
<script type='module'>
|
||||||
import {MTLLoader} from 'https://cdn.jsdelivr.net/npm/three@0.116.0/examples/jsm/loaders/MTLLoader.js'
|
import {MTLLoader} from 'https://cdn.jsdelivr.net/npm/three@0.116.0/examples/jsm/loaders/MTLLoader.js'
|
||||||
import {OBJLoader} from 'https://cdn.jsdelivr.net/npm/three@0.116.0/examples/jsm/loaders/OBJLoader.js'
|
import {OBJLoader} from 'https://cdn.jsdelivr.net/npm/three@0.116.0/examples/jsm/loaders/OBJLoader.js'
|
||||||
|
Loading…
Reference in New Issue
Block a user