Preston
Preston
Explore posts from servers
CDCloudflare Developers
Created by Preston on 10/14/2023 in #general-help
Js optimization / minimizing
Hi, I have a nextcloud instance running on my server and when i connect to it i get the following error
Refused to load the script 'https://nc.xxxxxxxxxxx.com/cdn-cgi/apps/head/0rCAkejHiHsiY11n5OajRZ2AK-0.js' because it violates the following Content Security Policy directive: "script-src 'nonce-TnhHT0wrbEEzNVJLVFJNeTRTUHdlUkJMR2xCVW91dmRHamJoMkgvalNUOD06QUZma2JMZ3Jpdk10QW1NQm9IcTJFaWNEYTJrZjg1S0hhZ2VqdEM2eEsxST0='". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
Refused to load the script 'https://nc.xxxxxxxxxxx.com/cdn-cgi/apps/head/0rCAkejHiHsiY11n5OajRZ2AK-0.js' because it violates the following Content Security Policy directive: "script-src 'nonce-TnhHT0wrbEEzNVJLVFJNeTRTUHdlUkJMR2xCVW91dmRHamJoMkgvalNUOD06QUZma2JMZ3Jpdk10QW1NQm9IcTJFaWNEYTJrZjg1S0hhZ2VqdEM2eEsxST0='". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
I already know that it is some setting with cloudflare but I cant seem to find it. Also Is there a way to apply them only to the subdomain. I tried disabling rocket and brotli already but i still get the error.
7 replies
DIAdiscord.js - Imagine an app
Created by Preston on 8/13/2023 in #djs-questions
Doesn't run with systemmd
im trying to get my bot to auto start with my computer but when i run the startup script through systemmd i get this error using 14.8.0
Aug 12 20:50:07 JPH systemd[1]: Started discord bot.
Aug 12 20:50:07 JPH node[56518]: /home/hackatoa/Documents/Discord-Bot-main/node_modules/discord.js/src/client/BaseClient.js:29
Aug 12 20:50:07 JPH node[56518]: userAgentAppendix: options.rest?.userAgentAppendix
Aug 12 20:50:07 JPH node[56518]: ^
Aug 12 20:50:07 JPH node[56518]: SyntaxError: Unexpected token '.'
Aug 12 20:50:07 JPH node[56518]: at wrapSafe (internal/modules/cjs/loader.js:915:16)
Aug 12 20:50:07 JPH node[56518]: at Module._compile (internal/modules/cjs/loader.js:963:27)
Aug 12 20:50:07 JPH node[56518]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Aug 12 20:50:07 JPH node[56518]: at Module.load (internal/modules/cjs/loader.js:863:32)
Aug 12 20:50:07 JPH node[56518]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
Aug 12 20:50:07 JPH node[56518]: at Module.require (internal/modules/cjs/loader.js:887:19)
Aug 12 20:50:07 JPH node[56518]: at require (internal/modules/cjs/helpers.js:74:18)
Aug 12 20:50:07 JPH node[56518]: at Object.<anonymous> (/home/hackatoa/Documents/Discord-Bot-main/node_modules/discord.js/src/index.js:6:22)
Aug 12 20:50:07 JPH node[56518]: at Module._compile (internal/modules/cjs/loader.js:999:30)
Aug 12 20:50:07 JPH node[56518]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Aug 12 20:50:07 JPH systemd[1]: discordbot.service: Main process exited, code=exited, status=1/FAILURE
Aug 12 20:50:07 JPH systemd[1]: Started discord bot.
Aug 12 20:50:07 JPH node[56518]: /home/hackatoa/Documents/Discord-Bot-main/node_modules/discord.js/src/client/BaseClient.js:29
Aug 12 20:50:07 JPH node[56518]: userAgentAppendix: options.rest?.userAgentAppendix
Aug 12 20:50:07 JPH node[56518]: ^
Aug 12 20:50:07 JPH node[56518]: SyntaxError: Unexpected token '.'
Aug 12 20:50:07 JPH node[56518]: at wrapSafe (internal/modules/cjs/loader.js:915:16)
Aug 12 20:50:07 JPH node[56518]: at Module._compile (internal/modules/cjs/loader.js:963:27)
Aug 12 20:50:07 JPH node[56518]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Aug 12 20:50:07 JPH node[56518]: at Module.load (internal/modules/cjs/loader.js:863:32)
Aug 12 20:50:07 JPH node[56518]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
Aug 12 20:50:07 JPH node[56518]: at Module.require (internal/modules/cjs/loader.js:887:19)
Aug 12 20:50:07 JPH node[56518]: at require (internal/modules/cjs/helpers.js:74:18)
Aug 12 20:50:07 JPH node[56518]: at Object.<anonymous> (/home/hackatoa/Documents/Discord-Bot-main/node_modules/discord.js/src/index.js:6:22)
Aug 12 20:50:07 JPH node[56518]: at Module._compile (internal/modules/cjs/loader.js:999:30)
Aug 12 20:50:07 JPH node[56518]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Aug 12 20:50:07 JPH systemd[1]: discordbot.service: Main process exited, code=exited, status=1/FAILURE
2 replies
DIAdiscord.js - Imagine an app
Created by Preston on 8/3/2023 in #djs-questions
Numbers in front of text.
I sent the message:
in my server and i console logged it using

in my server and i console logged it using

console.log(${message.content.slice(prefix.length)});
but the result im getting is :
but the result im getting is :
636484900888597> testing``` how do i get rid of those numbers and what are they the numbers for
5 replies
CDCloudflare Developers
Created by Preston on 7/23/2023 in #general-help
cant connect to webpage on subdomain
i have my domain linked to a github webpage and i have two subdomains i want to link to sites running off my computer. there are on port 80 and 8080. if i connect to the ip:port it works rn
3 replies
CDCloudflare Developers
Created by Preston on 7/23/2023 in #general-help
connect to local server using public ip
i have a game server configured through clouflare and i want to connect to it on my local computer using that same ip i would give other people. server it running on the same computer
7 replies