curl
result and the vanilla one doesn't? is there a bug in the vanilla version?
/new
(unofficial) API. CodiMD from docker.io/linuxserver/codimd:latest
. Any clue why? Shall I jump on a more recent build?
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 :)
package.json
but it can be changed anyways.
@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.
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...)
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.
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?
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.