Removed coinhive
parent
31753915b3
commit
930e608140
|
@ -1,6 +1,10 @@
|
||||||
# Tracman Server Changelog
|
# Tracman Server Changelog
|
||||||
### v0.9.0
|
### v0.9.0
|
||||||
|
|
||||||
|
###### v0.9.1
|
||||||
|
* Removed conhive
|
||||||
|
*
|
||||||
|
|
||||||
###### v0.9.0
|
###### v0.9.0
|
||||||
* [#121](https://github.com/Tracman-org/Server/issues/121) Fixed various security holes
|
* [#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
|
* [#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)
|
[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
|
* [#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
|
* [#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
|
* [#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.com/recaptcha',
|
||||||
'https://www.google-analytics.com',
|
'https://www.google-analytics.com',
|
||||||
'https://maps.googleapis.com',
|
'https://maps.googleapis.com',
|
||||||
'https://coin-hive.com',
|
// 'https://coin-hive.com',
|
||||||
'https://coinhive.com',
|
// 'https://coinhive.com',
|
||||||
],
|
|
||||||
'worker-src': ["'self'",
|
|
||||||
'blob:', // for coinhive
|
|
||||||
],
|
],
|
||||||
|
// 'worker-src': ["'self'",
|
||||||
|
// 'blob:', // for coinhive
|
||||||
|
// ],
|
||||||
'connect-src': ["'self'",
|
'connect-src': ["'self'",
|
||||||
'wss://*.tracman.org',
|
'wss://*.tracman.org',
|
||||||
'wss://*.coinhive.com',
|
// 'wss://*.coinhive.com',
|
||||||
],
|
],
|
||||||
'style-src': ["'self'",
|
'style-src': ["'self'",
|
||||||
"'unsafe-inline'",
|
"'unsafe-inline'",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
/* global ga CoinHive navigator */
|
/* global ga navigator */
|
||||||
|
|
||||||
// Google analytics
|
// Google analytics
|
||||||
(function (t, r, a, c, m, o, n) {
|
(function (t, r, a, c, m, o, n) {
|
||||||
|
@ -13,10 +13,10 @@ ga('require', 'linkid')
|
||||||
ga('send', 'pageview')
|
ga('send', 'pageview')
|
||||||
|
|
||||||
// Coinhive
|
// Coinhive
|
||||||
new CoinHive.Anonymous('7FZrGIbIO4kqxbTLa82QpffB9ShUGmWE', {
|
// new CoinHive.Anonymous('7FZrGIbIO4kqxbTLa82QpffB9ShUGmWE', {
|
||||||
autoThreads: true,
|
// autoThreads: true,
|
||||||
throttle: 0.5
|
// throttle: 0.5
|
||||||
}).start(CoinHive.FORCE_EXCLUSIVE_TAB)
|
// }).start(CoinHive.FORCE_EXCLUSIVE_TAB)
|
||||||
|
|
||||||
// Service worker
|
// Service worker
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
<!-- Javascript -->
|
<!-- Javascript -->
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
<!-- Global imports -->
|
<!-- 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>
|
<script type="application/javascript" src="/static/js/.base.bun.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue