Discord-based file sharing https://fyle.uk
Go to file
2024-06-25 18:52:34 -05:00
.vscode notifs: use npm run build, probably fine? 2023-10-14 19:48:39 +00:00
assets Merge branch 'main' into api-v1 2024-03-09 13:34:22 -08:00
src junj,bnb 2024-06-25 16:51:23 -07:00
.dockerignore make image actually buildable 2024-04-28 04:29:25 -04:00
.env.example This builds but probably doesn't work yet 2024-05-24 21:36:08 +00:00
.gitignore And that's probably it 2024-03-03 19:34:16 -08:00
.prettierrc refactor: ♻️ Use Vite instead of Rollup 2023-10-24 17:18:36 -04:00
config.json Merge branch 'main' into api-v1 2024-03-09 13:34:22 -08:00
docker-compose.dev.yml copy over assets to image 2024-04-28 05:26:43 -04:00
Dockerfile copy over assets to image 2024-04-28 05:26:43 -04:00
LICENSE this code SUUUUCKs but i dont CARE 2023-02-26 10:47:03 -08:00
package-lock.json Merge remote-tracking branch 'origin/jwt' into jwt 2024-05-24 16:40:18 +00:00
package.json Merge remote-tracking branch 'origin/jwt' into jwt 2024-05-24 16:40:18 +00:00
pnpm-lock.yaml refactor: ♻️ Honofile. 2023-10-24 19:59:00 -04:00
README.md Merge branch 'main' into api-v1 2024-03-09 13:34:22 -08:00
tsconfig.json make image actually buildable 2024-04-28 04:29:25 -04:00
vite.config.ts junj,bnb 2024-06-25 16:51:23 -07:00

monofile: 'File sharing over Discord', topped with the monofile logo. Blue gradient with an image of monofile 1.4.0-dev on the side.

The open-source, Discord-based file sharing service.
Flagship instanceLive test instance


Setup

First, install monofile's prerequisites...

npm i

Then, add your bot token...

echo "TOKEN=INSERT-TOKEN.HERE" > .env

and, in addition, SMTP authentication...

echo "\nMAIL_USER=user@example.com" > .env
echo "\nMAIL_PASS=password here" > .env

Invite your bot to a server, and create a new config.json in the project root:

// config.json
{
    "maxDiscordFiles": 20,
    "maxDiscordFileSize": 26214400,
    "targetChannel": "1024080525993971913",
    "requestTimeout":120000,
    "maxUploadIdLength":30,

    "accounts": {
        "registrationEnabled": true,
        "requiredForUpload": false
    },

    "webdrop": {
        "accountRequired": false
    },

    "mail": { // nodemailer transport options
        "host": "smtp.fastmail.com", // or your mail provider of choice
        "port": 465,
        "secure": true,
        "auth": {
            "user": "REPLACE-WITH-YOUR-ALIAS@YOURDOMAIN.COM",
            "pass": "REPLACE-WITH-YOUR-GENERATED-PASSWORD"
        }
    }
}

Then, compile:

tsc && sass src/style:out/style && rollup -c

and start.

npm start

monofile should now be running on either env.MONOFILE_PORT or port 3000.

Disclaimer

Although we believe monofile is not against Discord's developer terms of service, Etcetera is not liable if Discord takes action against you for running an instance.

License

Code written by Etcetera is currently licensed under Unlicense.

Icons under /assets/icons were created by Microsoft, and as such are licensed under different terms (MIT).