You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
I have some thoughts about the risk and possible performance issue if you would directly hook into the database of an lemmy instance. Could be a security risk if wrongly implemented. Or just a performance bottleneck.
I would see a possibility in #60 to make this possible. For example that it could use its own source, like a pre cached database, static file that gets updated or just direct access. They can choose directly who has access to that data.
And the responsibility goes further away from you of dealing with spam, authorisation and so on.
I would really not touch anything with google drive + user data. As some instances privacy policy or in general the countries privacy laws could be difficult. I would just cache those or let #60 cache it.
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:
express
(or similar) server that has drivers for postgresql, pictrs? (is this a volume that we can mount?) etc/api/v1
Frontend changes:
Unknowns:
The text was updated successfully, but these errors were encountered: