Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/randomairborne/mod-images
Image-bin for moderators of discord servers
https://github.com/randomairborne/mod-images
Last synced: 20 days ago
JSON representation
Image-bin for moderators of discord servers
- Host: GitHub
- URL: https://github.com/randomairborne/mod-images
- Owner: randomairborne
- Created: 2023-12-29T01:28:33.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-05-09T04:13:50.000Z (6 months ago)
- Last Synced: 2024-05-09T05:25:42.466Z (6 months ago)
- Language: Rust
- Homepage:
- Size: 169 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# mod-images
Sick of discord cutting off attachment links in modlogs? No more! With a private
image-bin, just for your moderators, you can rest easy knowing that even a leaked
modlog will lead to no harm.If you need this hosted, don't hesitate to [reach out](https://www.randomairborne.dev/contact/)!
## Required environment variables
- `BUCKET_NAME`: S3 Bucket name
- `S3_ENDPOINT`: AWS S3 endpoint
- `S3_REGION`: S3 region- set to `auto` for R2
- `S3_ACCESS_KEY_ID`: S3 access key ID, from AWS. Needs PUT and presigned GET permissions, with CORS allowed
for `ROOT_URL`. For example, were your site to be hosted at https://mod-images.example.com, you would
need to add the `Access-Control-Allow-Origin` header with the value `https://mod-images.example.com` or
`*`.
- `S3_SECRET_ACCESS_KEY`: S3 secret
- `REDIS_URL`: Redis URL, used only to store OAuth2 tokens
- `GUILD`: Snowflake ID of the guild you want to check `MANAGE_MESSAGES` permissions in
- `DISCORD_TOKEN`: Discord bot token for your app
- `CLIENT_SECRET`: Discord client secret for your app
- `ROOT_URL`: The root URL this is hosted at, e.g. `https://mod-images.example.com`.Available on Docker/GCHR:
`ghcr.io/randomairborne/mod-images:latest`