Skip to content

Docker-Support: Allow linking with Lemmy/Pictrs DB #50

@tgxn

Description

@tgxn

We could run a small backed express instance alongside the frontend within the docker container build that:

This would require a few things, not a small task at all. Creating an API means We'd need to document it, support it (don't need to worry about backwards compat since only the packaged frontend will be able to use it)

Backend changes:

  • Change the Dockerfile to use express with some static middleware for the frontend.
  • Create a new basic express (or similar) server that has drivers for postgresql, pictrs? (is this a volume that we can mount?) etc
  • Expose this api at /api/v1

Frontend changes:

  • Detect if API is exposed or use build param in github action
  • Create modules fo things:
    • Viewing Pictrs Images and their links to Lemmy content (ability to delete unlinked images/view IP's? that ccreated them)
    • Viewing more user data? Does the Lemmy DB have user IPs, or something else we can use to detect spam accounts?
    • View other cool stats/data? Reports?

Unknowns:

  • Auth? Can we just use the same token mechanism that Lemmy uses? Should we add something more...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions