Commit graph

3305 commits

Author SHA1 Message Date
Sheogorath
add5d998c0
feat(logging): Exclude /status route from logging
This patch should reduce the logging noise a lot, by removing the
`/status` route from logging unless hedgedoc is running in debug mode or
the route throws an error code.

This is achieved by providing a "skip"-function to the morgan logging
provider.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2021-08-15 20:53:11 +02:00
renovate[bot]
6c17823da1
chore(deps): update dependency mkdocs-material to v7.2.4 (#1528)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-11 22:19:17 +00:00
renovate[bot]
d0244affdf
chore(deps): update dependency mkdocs-material to v7.2.3 (#1524)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 20:53:48 +00:00
renovate[bot]
7e3ed970e5
chore(deps): lock file maintenance (#1520)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 04:56:24 +00:00
renovate[bot]
fad7ae416b
chore(deps): update dependency mermaid to v8.11.4 (#1511)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-05 19:33:12 +00:00
David Mehren
e59c9eb1d2
Merge pull request #1499 from hedgedoc/renovate/master-major-remark-monorepo
chore(deps): update dependency remark-cli to v10 (master)
2021-08-05 20:24:14 +02:00
Renovate Bot
91512bcc2c
chore(deps): update dependency remark-cli to v10
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-08-05 07:56:50 +00:00
David Mehren
c3c8a7ad8f
Merge pull request #1505 from matejc/master
fix(s3): replace dash with dot for s3 endpoint
2021-08-05 09:38:10 +02:00
renovate[bot]
0a01ee314b
chore(deps): update dependency mermaid to v8.11.3 (#1506)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 19:06:46 +00:00
Matej Cotman
65fac143f6 fix(s3): replace dash with dot for s3 endpoint
According to the AWS documentation there is no situation that there is a dash in `s3-<region>.amazonaws.com`, the correct way is with a dot `s3.<region>.amazonaws.com`
Source: https://docs.aws.amazon.com/general/latest/gr/s3.html

Signed-off-by: Matej Cotman <matej.cotman@eficode.com>
2021-08-04 16:09:08 +03:00
David Mehren
8ab173e994
Merge pull request #1475 from hedgedoc/renovate/master-lock-file-maintenance
chore(deps): lock file maintenance (master)
2021-08-01 18:58:24 +02:00
David Mehren
56111a4ae7
Merge pull request #1487 from hedgedoc/renovate/master-linters
chore(deps): update dependency eslint to v7.32.0 (master)
2021-08-01 18:58:07 +02:00
David Mehren
84571ac0e8
Merge pull request #1474 from hedgedoc/failing-migrations-notice
[1.x] Add help link and short explanation for failing migrations
2021-08-01 18:22:37 +02:00
David Mehren
64fd38b60c
Merge pull request #1468 from hedgedoc/session-cookie-status
[1.x] Exclude /metrics and /status routes from session initialization
2021-08-01 18:22:14 +02:00
Renovate Bot
673c900bbb
chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-08-01 16:13:14 +00:00
Renovate Bot
657f2dc930
chore(deps): update dependency eslint to v7.32.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-08-01 16:11:46 +00:00
renovate[bot]
4ca2600a27
chore(deps): update dependency mkdocs-material to v7.2.2 (#1489)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-01 16:10:22 +00:00
renovate[bot]
f00d785c7e
chore(deps): update dependency mermaid to v8.11.2 (#1481)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-01 15:52:02 +00:00
David Mehren
6ea3321074
Merge pull request #1479 from hedgedoc/work-around-slide-example-link
Don't open anchor links in new tabs
2021-07-27 14:57:38 +02:00
Tilman Vatteroth
c767bad386
Make anchor links base uri independent
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-07-26 22:29:33 +02:00
David Mehren
fa6edba53a
Merge pull request #1478 from hedgedoc/renovate/master-patch-test-packages
chore(deps): update dependency mocha to v9.0.3 (master)
2021-07-26 21:51:38 +02:00
David Mehren
e24941a0a6
Merge pull request #1460 from hedgedoc/renovate/master-mkdocs-1.2.x
chore(deps): update dependency mkdocs to v1.2.2 (master)
2021-07-26 21:50:09 +02:00
Renovate Bot
d51f06a386
chore(deps): update dependency mocha to v9.0.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 19:42:15 +00:00
Renovate Bot
32f0f90a7e
chore(deps): update dependency mkdocs to v1.2.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 19:41:59 +00:00
David Mehren
9f65e64b01
Merge pull request #1464 from hedgedoc/renovate/master-mkdocs-material-7.x
chore(deps): update dependency mkdocs-material to v7.2.1 (master)
2021-07-26 21:40:45 +02:00
Renovate Bot
70801917bf
chore(deps): update dependency mkdocs-material to v7.2.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 18:19:05 +00:00
David Mehren
4566622c01
Run CI for Renovate branches
This ensures that CI data exists and renovate can
 automerge on success or create a PR on failure.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-07-26 20:14:15 +02:00
Erik Michelson
95a8b5c5be
Add help link and short explanation for failing migrations
See #1419

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2021-07-21 00:06:07 +02:00
Erik Michelson
90c5ab0833
Exclude /metrics and /status routes from session initialization
This commit adds a `useUnless` helper method which can be used as a middleware for express.
It receives an express-middleware and an array of paths.
When a request matches one of the given paths, this middleware does nothing.
Otherwise the given middleware is called.

For the express-session middleware this helper middleware is used to avoid session creation on purely status routes.
See #1446

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2021-07-20 23:56:54 +02:00
David Mehren
c9c170e6a7
Merge pull request #1450 from hedgedoc/renovate/master-linters
chore(deps): update dependency eslint to v7.31.0 (master)
2021-07-18 10:36:04 +02:00
Renovate Bot
3fc75616bb
chore(deps): update dependency eslint to v7.31.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-18 08:22:07 +00:00
David Mehren
a2b8f8e4e3
Merge pull request #1453 from hedgedoc/docs/mattermost_navbar
[Docs] Add Mattermost guide to navigation
2021-07-18 10:20:02 +02:00
David Mehren
0f566c5ce7
[Docs] Add Mattermost guide to navigation
Signed-off-by: David Mehren <git@herrmehren.de>
2021-07-18 10:02:17 +02:00
David Mehren
8d8ec24108
Merge pull request #1439 from hedgedoc/renovate/master-lock-file-maintenance
chore(deps): lock file maintenance (master)
2021-07-15 22:21:38 +02:00
Renovate Bot
4c522ffed7
chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-15 18:55:15 +00:00
David Mehren
ce91be383b
Merge pull request #1443 from hedgedoc/renovate/master-css-loader-5.x
chore(deps): update dependency css-loader to v5.2.7 (master)
2021-07-15 20:52:31 +02:00
Renovate Bot
3c1f177172
chore(deps): update dependency css-loader to v5.2.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-15 18:40:35 +00:00
David Mehren
8feaefe0fe
Merge pull request #1436 from hedgedoc/renovate/master-mkdocs-material-7.x
chore(deps): update dependency mkdocs-material to v7.1.10 (master)
2021-07-15 20:39:44 +02:00
Renovate Bot
ac65de1348
chore(deps): update dependency mkdocs-material to v7.1.10
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-10 14:44:41 +00:00
David Mehren
e8e9c9c111
Merge pull request #1425 from hedgedoc/renovate/master-lock-file-maintenance
chore(deps): lock file maintenance (master)
2021-07-05 15:04:39 +02:00
Renovate Bot
936df7e067
chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-05 00:17:01 +00:00
David Mehren
9c58cd1cfc
Merge pull request #1423 from hedgedoc/renovate/master-test-packages 2021-07-03 18:39:44 +02:00
Renovate Bot
67498905c1
chore(deps): update dependency mocha to v9.0.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-03 16:03:54 +00:00
David Mehren
a4c0121caf
Merge pull request #1424 from hedgedoc/renovate/master-prismjs-1.x
chore(deps): update dependency prismjs to v1.24.1 (master)
2021-07-03 18:02:43 +02:00
Renovate Bot
93eb7e19af
chore(deps): update dependency prismjs to v1.24.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-03 11:59:29 +00:00
David Mehren
791f3482b5
Merge pull request #1413 from hedgedoc/renovate/master-lock-file-maintenance
chore(deps): lock file maintenance (master)
2021-07-03 10:42:33 +02:00
Renovate Bot
f40ad5b9a8
chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-03 08:38:43 +00:00
David Mehren
e9059e43dd
Merge pull request #1405 from hedgedoc/renovate/master-optimize-css-assets-webpack-plugin-6.x
chore(deps): update dependency optimize-css-assets-webpack-plugin to v6.0.1 (master)
2021-07-03 10:34:11 +02:00
David Mehren
f5c228d790
Merge pull request #1411 from hedgedoc/renovate/master-mermaid-8.x
chore(deps): update dependency mermaid to v8.11.0 (master)
2021-07-03 10:34:02 +02:00
Renovate Bot
7d38462650
chore(deps): update dependency mermaid to v8.11.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-07-03 08:29:40 +00:00