Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:27
    Nick0603 synchronize #1699
  • 18:27
    Nick0603 commented #1699
  • 18:26
    Nick0603 synchronize #1699
  • 18:25
    Nick0603 commented #1699
  • 09:58
    jackycute review_requested #1699
  • 09:57
    jackycute review_request_removed #1699
  • 09:57
    jackycute review_requested #1699
  • 09:57
    jackycute review_requested #1699
  • 00:02
    Nick0603 synchronize #1699
  • Jun 19 23:57
    Nick0603 opened #1699
  • Jun 16 13:27

    jackycute on dev-container

    (compare)

  • Jun 16 13:27

    jackycute on develop

    chore: add dev container Signe… Merge pull request #1688 from h… (compare)

  • Jun 16 13:27
    jackycute closed #1688
  • Jun 16 13:27
    jackycute commented #1688
  • Jun 16 12:56
    jackycute commented #1431
  • Jun 16 12:56
    jackycute closed #1431
  • Jun 16 11:17

    a60814billy on upgrade-mermaid-8.10.1

    (compare)

  • Jun 16 11:17

    a60814billy on develop

    feat: upgrade mermaid to versio… feat: upgrade mermaid to versio… Merge pull request #1690 from h… (compare)

  • Jun 16 11:17
    a60814billy closed #1690
  • Jun 16 11:11

    a60814billy on develop

    fix: strip html tags for gist i… fix: strip html tags for gist f… Merge pull request #1691 from h… (compare)

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.
1 reply
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/
Jan Hamal Dvořák
@mordae_gitlab
Hello. I have a couple hundred CodiMD users (Czech Pirate Party) and it seems that we severely need comments (#1223). HackMD is not an option for us, though.
Is there a way for us to sponsor this CodiMD feature?
Jan Mordae Hamal Dvořák
@mordae:matrix.org
[m]
[Still mordae, but from Matrix if you want to contact me.]
Max Wu
@jackycute

Hello. I have a couple hundred CodiMD users (Czech Pirate Party) and it seems that we severely need comments (#1223). HackMD is not an option for us, though.

May I understand why HackMD isn't an option for you?

mordae
@mordae:matrix.org
[m]
Correct me if I am mistaken, but hackmd is not really Free Software, or is it?
We are trying to make https://publiccode.eu/ reality and using proprietary SaaS (even on-premise) is weakening our position.
Karl Yu_ tw
@zk_researcher_twitter
Hi this message comes from china
why can't I open hackmd on my side ? says too long to respond
however I've changed the ipaddress in /etc file manually
Max Wu
@jackycute
hackmd.io has been banned in China from a long while ago.

Correct me if I am mistaken, but hackmd is not really Free Software, or is it?

HackMD has open source version which is CodiMD, and it's not Free software indeed.

Jan Mordae Hamal Dvořák
@mordae:matrix.org
[m]
Still, we are interested in sponsoring this feature in the free version.
Is there anyone I can negotiate conditions with?
Himura Kazuto
@Himura2la

and it's not Free software indeed.

What do you mean? The README.md says "CodiMD is the free software version of HackMD"

1 reply
Guys, I did some work on backing up and restoring the CodiMD.
We use CodiMD for several years in our company, thanks for this great product!
I hope my scripts could help someone: https://gist.github.com/Himura2la/2b7cfabcbcf2347a08efeacb3436cbfd
How about adding them to docs?
1 reply