Commit Graph

621 Commits (cb753b045fe90294051cc7a09855418f917dcc34)

Author SHA1 Message Date
Nutomic 28eade6168
Fix invalid config in docker/prod (fixes #2520) (#2524) 2 years ago
Nutomic 3b0be52e67
Image improvements (#2513)
* Image improvements

* remove rate limits
2 years ago
Dessalines 235cc8b228
Moving settings to Database. (#2492)
* Moving settings to Database.

- Moves many settings into the database. Fixes #2285
- Adds a local_site and instance table. Fixes #2365 . Fixes #2368
- Separates SQL update an insert forms, to avoid runtime errors.
- Adds TypedBuilder to all the SQL forms, instead of default.

* Fix weird clippy issue.

* Removing extra lines.

* Some fixes from suggestions.

* Fixing apub tests.

* Using instance creation helper function.

* Move forms to their own line.

* Trying to fix local_site_data, still broken.

* Fixing federation tests.

* Trying to fix check features 1.

* Addressing PR comments.

* Adding check_apub to all verify functions.
2 years ago
Nutomic 276a8c2bd3
Enable lto, strip symbols via cargo.toml (#2512) 2 years ago
Dessalines 9ac13a0891
Fix docker dev build (#2509)
* Fixing docker dev build.

* Remove volume mount files.

* Fixing pictrs.

* Addressing PR comments.
2 years ago
sam365724 cb559178bd
More real-world prod config, separate lemmy config (#2487) 2 years ago
sam365724 d2608bb279
Make docker-compose more clear and explicit (#2469)
* Make docker-compose more clear, starting with dev

Explicit networks, not opining ports when not necessary: Confusing for users. All requests go through nginx, so there is no need to open ports directly on pictrs and other services for example. I wasn't sure about jaeger and otel, maybe that can be changed somewhat too. 

Also adding comments and things that are relevant for a prod setup too.

* Update with comments

* Providing dedicated nginx and lemmy conf

* Fix config key for pictrs.

* Fix config key for pictrs.

* updates on naming

* Adding docker compose build info

* Revert to more complete lemmy config

* Test and fix build paths

* Fix otel config

* Delete dev file

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2 years ago
Dessalines 2f0560ca3f
Update docker version to 0.16.6. Fixes #2435 (#2438) 2 years ago
Dessalines f878151648
Add postgres auto-explain for dev testing. (#2399)
* Add postgres auto-explain for dev testing.

* add newline

* fix indent

Co-authored-by: Nutomic <me@nutomic.com>
2 years ago
Dessalines 9c3efe32e7
First pass at adding comment trees. (#2362)
* First pass at adding comment trees.

- Extracted comment replies into its own table.
- Added ltree column to comment
- Added parent_id param to GetComments to fetch a tree branch
- No paging / limiting yet

* Adding child_count to comment_aggregates.

* Adding parent comment update counts

* Fix unit tests.

* Comment tree paging mostly done.

* Fix clippy

* Fix drone tests wrong postgres version.

* Fix unit tests.

* Add back in delete in unit test.

* Add postgres upgrade script.

* Fixing some PR comments.

* Move update ltree into Comment::create

* Updating based on comments.

* Fix send soft fail.
2 years ago
Nutomic 42eac1560f
Remove docker/pleroma/ folder (#2381) 2 years ago
Dessalines 4e12e25c59
Adding admin purging of DB items and pictures. #904 #1331 (#1809)
* First pass at adding admin purge. #904 #1331

* Breaking out purge into 4 tables for the 4 purgeable types.

* Using CommunitySafe instead in view

* Fix db_schema features flags.

* Attempting to pass API key.

* Adding pictrs image purging

- Added pictrs_config block, for API_KEY
- Clear out image columns after purging

* Remove the remove_images field from a few of the purge API calls.

* Fix some suggestions by @nutomic.

* Add separate pictrs reqwest client.

* Update defaults.hjson

Co-authored-by: Nutomic <me@nutomic.com>
2 years ago
Nutomic a29cf04092
Fix lemmy version in prod docker-compose.yml (#2304) 2 years ago
Nutomic fcaf7a084c
Upgrade activitypub_federation to 0.2.0, add setting federation.debug (#2300) 2 years ago
Dessalines 1bd57ee5ca Version 0.16.5 2 years ago
Nutomic 7566f325cd
Downgrade Rust Docker images to 1.59 to fix CI failures (ref #2263) (#2274) 2 years ago
Nutomic 99f3141841
Update to Rust 1.60 (#2247) 2 years ago
Dessalines 0d9b756b75
Adding lemmy_ui_debug for future debug testing. (#2211)
Co-authored-by: Nutomic <me@nutomic.com>
2 years ago
Dessalines 2985e88a49
Fixing generate unique changeme (#2205)
* Fixing generate unique changeme

* Fixing generate unique changeme 2

* Changing link to .invalid domain.

Co-authored-by: Nutomic <me@nutomic.com>
2 years ago
Nutomic fed73a72c1
Write mod log for federated sticky/lock post actions (#2203) 2 years ago
Dessalines c232564fda Version 0.16.3 2 years ago
Dessalines ef08870ce5 Upgrading pictrs. 2 years ago
Dessalines d5a213760d Version 0.16.2 2 years ago
Nutomic ecd157d4a7
Update pictrs to 0.3.0-rc.7 (#2149) 2 years ago
Dessalines 5265f6100e Restore prod docker-compose.yml 2 years ago
Nutomic 611d336f94
Remove docker/prod unused files (fixes #2086) (#2133) 2 years ago
Dessalines 514e2301b5 Version 0.16.1 2 years ago
Dessalines 05f20da51f Version 0.16.0 2 years ago
Dessalines f53902ecff Version 0.15.1 2 years ago
Dessalines bccb4f068d Version 0.15.0 2 years ago
Marty a860e22b85
uses compatable images - fixes GLIBC_2.29 not found issue on (at least) arm machines (#2028) 2 years ago
Riley 41b90bb162
Add console-subscriber (#2003)
* Add console-subscriber

* Add larg event buffer capacity

* Add console port to lemmy prod container

* Expose pict-rs console port

* Update pictrs
2 years ago
Riley 3032a2745b
Opentelemetry (#1992)
* Add otlp export

* Add jaeger to dev docker

* More instrument

* Update deps

* Merge from main.

* Add comment about viewing traces

* Fixing reqwest-tracing dep.

* Update pre-commit regex

* Move imports to top

Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2 years ago
Dessalines 1880d64235
Upgrading pictrs. (#1996) 2 years ago
Marty 8ce0c6d618
added deps - git and ca-certificates (for federation to work) and changed adduser to useradd so that user can be added non-interactively (#1976) 2 years ago
Dessalines 97b8b9c255 Version 0.14.3 3 years ago
Dessalines 7f01d8cde6 Version 0.14.2 3 years ago
Dessalines a56853be05
Merge pull request #1907 from not-layla/main
Implement rate limits on comments
3 years ago
layla 7fe7062c47 Implement rate limits on comments 3 years ago
Dessalines 66ba91de8c Fixing arm dockerfile. 3 years ago
Dessalines f4616789a7 Version 0.14.1 3 years ago
Dessalines 8b45ca0da2 Fixing prod deploy not adding other docker-compose.yml files. 3 years ago
Dessalines c29366328e Version 0.14.0 3 years ago
Felix Ableitner 135fd6864b Add docker setup for testing Pleroma federation 3 years ago
Dessalines 5b3be5c102 Updating rust musl images 3 years ago
Dessalines 44b5fe0631
Stop using lemmy-ui:dev images (#1880)
* Stop using lemmy-ui:dev images

* Dont publish dev docker images with drone.
3 years ago
Felix Ableitner 0bde2d595e Add tests for parsing activities and collections 3 years ago
Dessalines b18ea3e0cc
Renaming to slur_filter. Fixes #1773 (#1801)
* Renaming to slur_filter. Fixes #1773

* Fixing config

* Updating doku for slur filter.

* Updating doku for slur filter again.

* Remove comment.
3 years ago
Dessalines 90a5febd38
Remove ansible from this repo. (#1829)
* Remove ansible from this repo.

* Adding a git push.
3 years ago
Felix Ableitner f24999027e Merge crates db_schema and db_queries 3 years ago