Removed coinhive
parent
31753915b3
commit
930e608140
|
@ -1,6 +1,10 @@
|
|||
# Tracman Server Changelog
|
||||
### v0.9.0
|
||||
|
||||
###### v0.9.1
|
||||
* Removed conhive
|
||||
*
|
||||
|
||||
###### v0.9.0
|
||||
* [#121](https://github.com/Tracman-org/Server/issues/121) Fixed various security holes
|
||||
* [#68](https://github.com/Tracman-org/Server/issues/68) Added tests, mostly for authentication
|
||||
|
|
|
@ -56,7 +56,8 @@ Tracman will be updated according to [this branching model](http://nvie.com/post
|
|||
|
||||
[view full changelog](CHANGELOG.md)
|
||||
|
||||
###### v0.9.0
|
||||
###### v0.9.x
|
||||
* Removed coinhive
|
||||
* [#121](https://github.com/Tracman-org/Server/issues/121) Fixed various security holes
|
||||
* [#68](https://github.com/Tracman-org/Server/issues/68) Added tests, mostly for authentication
|
||||
* [#120](https://github.com/Tracman-org/Server/issues/120) Split config/routes/settings.js into two files
|
||||
|
|
12
server.js
12
server.js
|
@ -69,15 +69,15 @@ let ready_promise_list = []
|
|||
'https://www.google.com/recaptcha',
|
||||
'https://www.google-analytics.com',
|
||||
'https://maps.googleapis.com',
|
||||
'https://coin-hive.com',
|
||||
'https://coinhive.com',
|
||||
],
|
||||
'worker-src': ["'self'",
|
||||
'blob:', // for coinhive
|
||||
// 'https://coin-hive.com',
|
||||
// 'https://coinhive.com',
|
||||
],
|
||||
// 'worker-src': ["'self'",
|
||||
// 'blob:', // for coinhive
|
||||
// ],
|
||||
'connect-src': ["'self'",
|
||||
'wss://*.tracman.org',
|
||||
'wss://*.coinhive.com',
|
||||
// 'wss://*.coinhive.com',
|
||||
],
|
||||
'style-src': ["'self'",
|
||||
"'unsafe-inline'",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
'use strict';
|
||||
/* global ga CoinHive navigator */
|
||||
/* global ga navigator */
|
||||
|
||||
// Google analytics
|
||||
(function (t, r, a, c, m, o, n) {
|
||||
|
@ -13,10 +13,10 @@ ga('require', 'linkid')
|
|||
ga('send', 'pageview')
|
||||
|
||||
// Coinhive
|
||||
new CoinHive.Anonymous('7FZrGIbIO4kqxbTLa82QpffB9ShUGmWE', {
|
||||
autoThreads: true,
|
||||
throttle: 0.5
|
||||
}).start(CoinHive.FORCE_EXCLUSIVE_TAB)
|
||||
// new CoinHive.Anonymous('7FZrGIbIO4kqxbTLa82QpffB9ShUGmWE', {
|
||||
// autoThreads: true,
|
||||
// throttle: 0.5
|
||||
// }).start(CoinHive.FORCE_EXCLUSIVE_TAB)
|
||||
|
||||
// Service worker
|
||||
if ('serviceWorker' in navigator) {
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
<!-- Javascript -->
|
||||
{% block javascript %}
|
||||
<!-- Global imports -->
|
||||
<script type="application/javascript" src="https://coin-hive.com/lib/coinhive.min.js"></script>
|
||||
<!--<script type="application/javascript" src="https://coin-hive.com/lib/coinhive.min.js"></script>-->
|
||||
<script type="application/javascript" src="/static/js/.base.bun.js"></script>
|
||||
{% endblock %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue