by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 29 17:39
    magnokf commented #535
  • May 28 09:47
    jdauphant opened #1529
  • May 28 04:17
    tarlety commented #1440
  • May 28 04:12
    tarlety commented #1440
  • May 27 09:45
    boschkundendienst opened #1528
  • May 26 02:50
    birdca synchronize #1471
  • May 26 02:47
    birdca synchronize #1471
  • May 26 02:46
    birdca synchronize #1471
  • May 25 21:10
    spasche commented #1392
  • May 25 14:28

    Yukaii on add-nvmrc

    (compare)

  • May 25 14:28

    Yukaii on develop

    chore: add .nvmrc to fix node v… Merge pull request #1520 from h… (compare)

  • May 25 14:28
    Yukaii closed #1520
  • May 25 14:27
    Yukaii commented #1520
  • May 25 14:27
    Yukaii milestoned #1520
  • May 25 14:27

    Yukaii on btn-social

    (compare)

  • May 25 14:27
    Yukaii commented #1522
  • May 25 14:27

    Yukaii on develop

    fix: replace btn-social with bt… Merge pull request #1522 from h… (compare)

  • May 25 14:27
    Yukaii closed #1522
  • May 25 14:27
    Yukaii closed #1491
  • May 25 14:27
    Yukaii milestoned #1522
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
Try use this configuration instead: https://pastebin.com/M6ZpNb39
Don't change anything, even the password, simply start it with docker-compose up -d
Steven Kruyswijk
@kruithoph_twitter
alright
ok - now curl http://localhost:3000 returns the code for a web page by the looks of it
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
What about the web browser?
Steven Kruyswijk
@kruithoph_twitter
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:3000 still for https
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
That's expected as the site isn't really HTTPS
Steven Kruyswijk
@kruithoph_twitter
web browser on my computer pointing to the URL still gives web hoster's error page
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
I suppose something in the VPS blocked it :-/
Steven Kruyswijk
@kruithoph_twitter
right, so add port 3000 to the iptables somehow?
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
Not necessary as Debian don't block any ports by default
Steven Kruyswijk
@kruithoph_twitter
entering the IP address instead of URL gives a refused to connect error
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
That's also expected as cURL defaults to the 80 port which is not open.
Steven Kruyswijk
@kruithoph_twitter
I'm comparing your .yml with the default one... `volumes:
  - ./database-data:/var/lib/postgresql/data` has quotation marks in the default
oops, markup
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
I mount the volume right under the working directory, this avoids the problem where the data in the named volume interferes with the application.
Steven Kruyswijk
@kruithoph_twitter
- ./upload-data:/home/hackmd/app/public/uploads lacks the ./ in the original
isn't it strange that your version does give a curl result and the vanilla one doesn't? is there a bug in the vanilla version?
or perhaps just a mismatch with my particular VPS
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
There's multiple factors influencing whether you get the wrong response, I would say it is a user-end issue.
Steven Kruyswijk
@kruithoph_twitter
ah, IP:3000 does work in my browser
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
I can verify that the vanilla setup works on a clean Debian 10 machine.
Steven Kruyswijk
@kruithoph_twitter
alright, then it must be some VPS configuration issue I guess
thank you very much for your help!
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
np.
Steven Kruyswijk
@kruithoph_twitter
oh btw, can you tell me which docker installation guide/method you used just now, for the vanilla verification?
perhaps that makes a difference
Steven Kruyswijk
@kruithoph_twitter
ah yes, I mean docker itself
or do you think that can't make a difference
Steven Kruyswijk
@kruithoph_twitter
right now, if I take this working example (that shows CodiMD in the browser at IP:port) and add - CMD_DOMAIN=url.com to the .yml, it just breaks the CSS on IP:port
and shows an error message from my domain/VPS provider on url.com. would that point to an issue on their side?
apologies for asking this many questions here - if there's more documentation about this stuff I'd love to read it
Steven Kruyswijk
@kruithoph_twitter
ok I guess the HTTPS setup is needed - I thought it was only recommended https://hackmd.io/c/codimd-documentation/%2F%40codimd%2FByDxZQgBL
Steven Kruyswijk
@kruithoph_twitter
and also I needed to modify the DNS settings of my URL @ my domain provider
Steven Kruyswijk
@kruithoph_twitter
the DNS setting in my domain configuration panel was the main issue all this time. I'm an idiot and thanks again...
林博仁(Buo-ren Lin)
@Lin-Buo-Ren
@kruithoph_twitter In the issue reproduction I use the Docker distribution from the Debian software archive, however I believe the upstream distribution work as well.
Florian Sauer
@florihupf
Hi there. Quick question. When I am opening a new firefox window to my self hosted CodiMD instance and want to edit a page it kind of takes about 15s until the top right button says "1 online", it wiggles back and forth between "offline" and "connected" until it finally says "1 online". The editor won't allow any edits until it is done with the process.
How can I debug / fix this? ;-)
Max Wu
@jackycute
@florihupf Hi, what's the CodiMD version you're using? What's your OS and browser version?
Giuseppe Lo Presti
@glpatcern
Hi there, I'm using a self-hosted, anonymous-login CodiMD instance for some prototyping, and I noticed that sometimes the toolbar with all formatting/uploading buttons is not shown. Sometimes = when I edit a note that I had injected via the /new (unofficial) API. CodiMD from docker.io/linuxserver/codimd:latest. Any clue why? Shall I jump on a more recent build?
Giuseppe Lo Presti
@glpatcern
(Just to note that I had tried to use nabo.codimd.dev/hackmdio/hackmd, but it requires authentication. Maybe worth updating the page at https://hackmd.io/c/codimd-documentation/%2Fs%2Fcodimd-docker-deployment - which otherwise works perfectly :)
Giuseppe Lo Presti
@glpatcern
[edit: I guess the above is the enterprise edition, therefore the auth issue is obvious, but that is not clear from the codimd documentation]
Max Wu
@jackycute
@glpatcern Hi, I don't think nabo.codimd.dev/hackmdio/hackmd:2.0.1 would require any authentication. It's definitely for CodiMD. What did you see from the logs?
Florian Sauer
@florihupf
@jackycute Hi Max, I am not sure how I can determine the version # that I am running. I got it from github. Is there a file that I can check that has the version # encoded? I am running this on Debian server and access it from Firefox under Ubuntu with Firefox being up to date.
Max Wu
@jackycute
@florihupf Could you pull and use the docker image instead? If you just want to use stable version, that's the best option. See the docs here: https://hackmd.io/c/codimd-documentation/%2Fs%2Fcodimd-docker-deployment
BTW, you can check the version in package.json but it can be changed anyways.
Florian Sauer
@florihupf
@jackycute Hi Max, I am using version 1.6.0. Do you recommend something newer? Could it be my apache proxy forwarding that might hose this? Thanks for the docker tip, I would like to use this only as the last resort ;-)
Florian Sauer
@florihupf
@jackycute Hi Max, I upgraded to latest 2.0.0 and the issue is gone. Honestly, I can't recall where I got the 1.6.0 from... Thanks for your time!
Giuseppe Lo Presti
@glpatcern

@glpatcern Hi, I don't think nabo.codimd.dev/hackmdio/hackmd:2.0.1 would require any authentication.

Thanks @jackycute, that's right: my docker (on CentOS) was too old, jumped to a newer one and I could fetch the 2.0.1 image. And here everything works as it should, so all right.

Andreas Klöckner
@inducer
If I set CMD_ALLOW_ANONYMOUS_EDITS to true, it appears that I automatically get anonymous guest notes as well. Since I'd prefer not to host a cesspool of undesirable copypasta from strangers, I'd like anonymous edits to only be possible on documents that a signed-in user has created previously (but not allow strangers to create new notes). Is this possible? I'm happy to file a feature request if appropriate. (For now, I've hacked the "New guest note" out of the UI on the front page, but that's a weak protection at best...)