Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 01 14:37
    JamesHow1ett synchronize #1621
  • Nov 30 05:27
    ZZYSonny closed #1627
  • Nov 29 11:49
    ZZYSonny opened #1627
  • Nov 26 13:21
    JamesHow1ett synchronize #1621
  • Nov 26 13:09
    JamesHow1ett synchronize #1621
  • Nov 26 10:29
    raphaeljolivet commented #1223
  • Nov 26 10:27
    raphaeljolivet commented #1223
  • Nov 21 19:41
    joachimmathes synchronize #1626
  • Nov 21 18:43
    joachimmathes opened #1626
  • Nov 19 15:55
    pichouk synchronize #1625
  • Nov 19 15:54
    pichouk opened #1625
  • Nov 19 12:40
    fujexo synchronize #1624
  • Nov 19 12:39
    fujexo opened #1624
  • Nov 19 10:57
    fujexo closed #1623
  • Nov 19 10:57
    fujexo edited #1623
  • Nov 19 10:55
    fujexo opened #1623
  • Nov 18 11:29
    koraa opened #1622
  • Nov 17 09:53
    roman-yatsenko commented #1599
  • Nov 17 09:52
    roman-yatsenko closed #1599
  • Nov 17 09:52
    roman-yatsenko opened #1621
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!
1 reply
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.

1 reply
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...)
1 reply
feffe
@feffes
hey, i'm running a server built from 49de5f5bd6239354d98b424804951974588ab25e and the scrolling functionality in the editor seems to have regressed? In whatever version is running on hackmd.io you can scroll the editor down until the last line is at the top of the editor, in 49de5f5bd6239354d98b424804951974588ab25e you can only scroll down until the last line is at the bottom. Disclaimer, I might be missing a config or something, just set it up. Just wanted to know if anyone was aware if this is a common problem or I'm just being the big dumb.
2 replies
Michael Lee "Goliath" Sewell
@msewell

I want to try out CodiMD using the Docker deployment method, but I'm running into issues. Running docker-compose up using exactly the same docker-compose.yml as in https://github.com/hackmdio/codimd/blob/89a0de420563078140bec384d6e6d5051357a1d6/deployments/docker-compose.yml (current master) makes the CodiMD image exit repeatedly (truncated docker-compose up output):

database_1  | 2020-06-09 10:34:50.729 UTC [51] LOG:  incomplete startup packet
codimd_1    | 2020-06-09T10:34:50.975Z warn:     Neither 'domain' nor 'CMD_DOMAIN' is configured. This can cause issues with various components.
codimd_1    | Hint: Make sure 'protocolUseSSL' and 'urlAddPort' or 'CMD_PROTOCOL_USESSL' and 'CMD_URL_ADDPORT' are configured properly.
codimd_1    | 2020-06-09T10:34:50.980Z warn:     Session secret not set. Using random generated one. Please set `sessionSecret` in your config.js file. All users will be logged out.
codimd_1    | 
codimd_1    | Sequelize CLI [Node: 8.16.2, CLI: 5.5.1, ORM: 5.21.3]
codimd_1    | 
codimd_1    | Parsed url postgres://codimd:*****@database/codimd
database_1  | 2020-06-09 10:34:51.407 UTC [52] FATAL:  password authentication failed for user "codimd"
database_1  | 2020-06-09 10:34:51.407 UTC [52] DETAIL:  Role "codimd" does not exist.
database_1  |     Connection matched pg_hba.conf line 95: "host all all all md5"
codimd_1    | 
codimd_1    | ERROR: password authentication failed for user "codimd"
codimd_1    | 
codimd_codimd_1 exited with code 1

Am I missing some Postgres configuration steps? Does it make a difference that I'm running macOS?

1 reply
Robert Sparks
@rjsparks

I'm trying to configure an instance of codimd at heroku to use oauth2 against my own provider. I'm not allowing anonymous edits. I've got it to the point that login is successful, but when I create a new note, I get a crash:

2020-06-15T14:58:08.632614+00:00 heroku[router]: at=info method=GET path="/sipcore" host=... request_id=2435563d-38f0-4441-9e40-07047c5d9a61 fwd="..." dyno=web.1 connect=0ms service=57ms status=500 bytes=678 protocol=https
2020-06-15T14:58:08.612464+00:00 app[web.1]: 2020-06-15T14:58:08.612Z info:     deserializeUser: 71f5dbfd-04a0-4fd4-b688-9ab8e1a4fd19
2020-06-15T14:58:08.622978+00:00 app[web.1]: Error: can not create note
2020-06-15T14:58:08.622979+00:00 app[web.1]:     at createNote (/app/lib/note/index.js:38:11)
2020-06-15T14:58:08.622980+00:00 app[web.1]:     at showNote (/app/lib/note/index.js:65:18)

This corresponds to the code in note/index.js:

async function createNote (userId, noteAlias) {
  if (!config.allowAnonymous && !userId) {
    throw new Error('can not create note')
  }

So, why after a successful login, is userId not set? What else do I need to change in the config?

If there's a better place to ask this, please let me know.

ScrumpyJack
@ScrumpyJack
@msewell did you fix it? I managed to get a stack working if you need a hand
Robert Sparks
@rjsparks
yes, by deploying a more recent version of the repository (previous was ~20 Apr, updated was ~17 Jun). I haven't found the code that changed (I expected the update to be a first step towards diagnosis, not the fix), but clearly something relevant must have. In any case, I've got what I needed to work working now. Thanks for following up. (On the off-hand chance it matters, the original deployment was one-click to heroku. I did the update with the heroku command-line client, pushing the updated repo).
ScrumpyJack
@ScrumpyJack
cool
ScrumpyJack
@ScrumpyJack
thinking of a way to publish all my codimd notes as a docu website. anyone done this before?
i have some ideas for a pipeline, but was wondering if anyone might have built something of sorts
Kangkook Jee
@jikk
I have a question. what is the difference between "codimd/server" and "hackmd/codimd"?
ScrumpyJack
@ScrumpyJack
Im also confused by the distinction.
ScrumpyJack
@ScrumpyJack
I see that HackMD has some neat features such as publish to git and book mode. I hope those make it into codimd
Kangkook Jee
@jikk
@ScrumpyJack thanks for your hepl!
Michito
@mic4ael
Hey there, I would like to get some more information about this issue hackmdio/codimd#1541
can anyone shed some light on this?
Max Wu
@jackycute
We handle the image uploads routing here: https://github.com/hackmdio/codimd/tree/develop/lib/imageRouter
Paul Shih
@chienstone
hello guys, I got Error code 502 from https://hackmd.io
Is here the right place to report?
oh I can access the site now
J07H15H
@5p4r70n
hai
is there any way to add email authentication in codimd ??
AlexFullmoon
@AlexFullmoon
Hello. Recently reinstalled CodiMD docker (I think I was on 1.4 before) and having some problems with https — css, js and images are trying to load over http, resulting in mixed content errors. I've got nginx with all the usual proxy headers as described in docs. I've set CMD_DOMAIN and (just in case) CMD_ALLOW_ORIGIN. What might be the cause?
Jay Chang
@changsijay
Hi, where can I find Dockerfile for hackmdio/runtime and hackmdio/buildpack?
Florian Harr
@EfficientSetting
I'm running CodiMD/HackMD 2.2.0 and I'm trying to "Enable Word Wrap" from the editor settings, but the only option I have is "Allow override browser keymap". Is there something I'm missing?
cblessing24
@cblessing24
Hey, I am trying to setup CodiMD using a SSL proxy and Docker. The UI becomes unresponsive when setting CMD_DOMAIN. Any help would be greatly appreciated.
Vishnunarayan K I
@vn-ki
Why does codimd have night mode and hackmd doesn't?
FavorMylikes
@FavorMylikes
Hello, may I ask which platforms should I choice if I want to use all of features with hackmd to make blog
likeafox37
@likeafox37
Is there a way to escape out of typographic characters https://hackmd.io/s/features#Typographic-Replacements - my document has (R) and (P) as exact text, and it's being rendered as registered trademark for example when it shouldn't be - \ doesn't appear to be working to escape me from these.
SimpleHW Support
@supportSimpleHW_gitlab
I am looking for someone knowledgeable of CodiMD who could help with migration from https://squidfunk.github.io/mkdocs-material/