HiberFile/HiberAPI

How to use this repo ? there is no readme, and can't understand how to import it to the hiberfile git

Closed this issue · 8 comments

image
What i should put here ?
I don't know what to do with that tho

I will write the README.

Please read the Prisma.io documentation to understand this file. It works as it is. You can edit it if you want to add custom property to your instance.

However, you have to create a .env file with these properties: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, FASTIFY_PORT, FASTIFY_ADDRESS, DATABASE_URL, JWT_SECRET.

Ok thx, And if we want to have a database on our own ? and not using the AWS ? How do we proceed ?

HiberFile does not use AWS. It uses S3, a technology built by AWS. Currently, we use the Scaleway's S3. You have to just choose a S3-compatible Object Storage. If you do not want to use a S3, you have to rewrite your own code.

Uh, that's sad, i have my own server and i would like to host Hiberfile in it :(

You can if you rewrite some pieces of code in the src/routes/files directory and remove all references of S3. Or if you want, you can use https://api.hiberfile.com/ directly, without host your own instance.

The fact is that i want to host them directly to my server, and then with a cronjob, delete them after their expiration time

So rewrite the code that uses S3