change path for scripts

This commit is contained in:
Thomas Lynch
2021-11-24 12:09:38 +11:00
parent e6db267f5e
commit 508e45ae9c
4 changed files with 3 additions and 3 deletions

View File

@ -18,4 +18,4 @@ services:
nginx:
image: "nginx:latest"
volumes:
- ./js:/usr/share/nginx/html
- ./nginx:/usr/share/nginx/html

View File

@ -26,7 +26,7 @@ if (window.Worker) {
}
const workers = [];
for (let i = 0; i < threads; i++) {
const shaWorker = new Worker('/worker.js');
const shaWorker = new Worker('/js/worker.js');
shaWorker.onmessage = messageHandler;
workers.push(shaWorker);
}

View File

@ -51,7 +51,7 @@ local body_template = [[
<input type="submit" value="Calculating proof of work..." disabled>
</form>
<footer>DDoS mitigation by <a href="https://kikeflare.com">KikeFlare</a></footer>
<script src="/sha1.js"></script>
<script src="/js/sha1.js"></script>
</body>
</html>
]]