-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebSocket gives error 405 on CloudFlare #61
Comments
Hello,
What branch/commit do you use ? How do you start CTFNote ?
Please, send the output of diff --git a/docker-compose.yml b/docker-compose.yml
index ea6564c..0798655 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -32,7 +32,7 @@ services:
- api
- codimd
ports:
- - 80:80
+ - 8080:80
codimd:
image: quay.io/hedgedoc/hedgedoc:1.9.0-alpine
environment: |
git diff is diff --git a/docker-compose.yml b/docker-compose.yml
index f34e7d6..9571060 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -38,7 +38,7 @@ services:
depends_on:
- hedgedoc
ports:
- - 80:80
+ - 8080:8080
hedgedoc:
image: quay.io/hedgedoc/hedgedoc:1.9.0-alpine
environment:
diff --git a/front/nginx.conf b/front/nginx.conf
index 8fa8e34..e411c65 100644
--- a/front/nginx.conf
+++ b/front/nginx.conf
@@ -1,6 +1,6 @@
server {
- listen 80;
- listen [::]:80;
+ listen 8080;
+ listen [::]:8080;
server_name localhost;
server_tokens off; But changing this in the newest commit causes the grahpql websocket to freak out |
I do not use CloudFlare, but I know that some team deployed CTFNote with it.
Can you be more specific about what "to freak out" means ? Can you try with tag Assuming you have no data yet : docker-compose down -v # This destroys the database !
git checkout v2.0.1
docker-compose build --pull
docker-compose up -d
sleep 5
docker-compose top
docker-compose logs front api This should print the following list of processes (or equivalent)
And the following logs
|
After switching from cloudflare and using certbot it works completely fine The websocket used to (on chrome) spam empty errors, but on microsoft edge it gave an actual error saying "Unexpected server response: 405" But after completely restarting the installation after the recent updates its all working perfectly Later I had some minor issues where I was unable to migrate properly because docker-compose exec refuses to give me any output so I had to tell everyone to re-register on the website but that's not too big of a deal. |
Hmmm… this is quite surprising ! 405 is "Method Not Allowed". |
Hi, |
I've been trying to setup CTFNote on my server, but everytime I try to open a pad for any task it simply opens an iframe of the index page.
Only change I've done was change the port from 80 to 8080
The text was updated successfully, but these errors were encountered: