TFNS / CTFNote

CTFNote is a collaborative tool aiming to help CTF teams to organise their work.
GNU General Public License v3.0
519 stars 61 forks source link

"Open Task" is rendering only HTML #106

Closed Hellsender01 closed 2 years ago

Hellsender01 commented 2 years ago

I am getting only HTML while opening Open Task Page image

Also, I am getting these warnings while doing docker-compose up -d, i guess these warnings are somewhat related to the problem mentioned above.

image

image

JJ-8 commented 2 years ago

I think the CSS and JS for Hedgedoc is hosted with a different path than the default path your.domain.com/pad.

Do you use a dedicated (sub)domain for hosting CTFNote? And if you navigate to /pad, do you see the Hedgedoc front page? If so, can you check your console and see if the CSS and JS is correctly fetched?

Hellsender01 commented 2 years ago

No, I have not used any subdomain for CTFNote, I am getting Hedgedoc front page on /pad but CSS and JS files are not getting fetched.

image

JJ-8 commented 2 years ago

Thank you for sharing your domain and the screenshot.

I think I have found the problem: image

This is of course not a valid URL. Have you specified the CMD_DOMAIN in the .env with http in it? If so, can you change it to CMD_DOMAIN=redknights.tech? Also, I would highly suggest to use HTTPS for your hosting since that is supported the best by CTFNote.

XeR commented 2 years ago

Also, I am getting these warnings while doing docker-compose up -d, i guess these warnings are somewhat related to the problem mentioned above.

These errors are "expected". IIRC we could not make them disappear without introducing vulnerabilities by downgrading the dependencies.

Hellsender01 commented 2 years ago

Thanks, Issue resolved, http:// was the issue in CMD_DOMAIN