Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to also use hours (h) instead of just days on MAX_FILEAGE and MIN_FILEAGE #24

Closed
TehPeGaSuS opened this issue Aug 24, 2023 · 4 comments

Comments

@TehPeGaSuS
Copy link

TehPeGaSuS commented Aug 24, 2023

Hello,

First of all I'd like to thank for the amazing work. Been using it for more than one year already, with no issues.

Recently, on IRCv3 a spec named filehost was discussed and a draft proposal was done here.

To avoid some abuses it would be nice if we can also specify hours instead of just days, because most of the time the file shared is bits of code that will be viewed right away, like a compilation error, a bug report, some POC code, etc.

This way we could keep our server clean of files that don't need to be accessed for more than a couple of hours.

@TehPeGaSuS TehPeGaSuS changed the title Option to use hours (h), days (d) or weeks (w) on MAX_FILEAGE and MIN_FILEAGE Option to use hours (h), days (d) or weeks (w) on MAX_FILEAGE and MIN_FILEAGE Aug 24, 2023
@TehPeGaSuS TehPeGaSuS changed the title Option to use hours (h), days (d) or weeks (w) on MAX_FILEAGE and MIN_FILEAGE Option to also use hours (h) instead of just days on MAX_FILEAGE and MIN_FILEAGE Aug 24, 2023
@Rouji
Copy link
Owner

Rouji commented Aug 25, 2023

Hi!

What do you mean by abuse, exactly? Compilation errors etc. are neither spam nor illegal nor big enough to be a problem if they're around for a day or even longer.

And you don't really get around having to deal with moderating actual abusive content unless you go like <1h retention.

I personally have good reason for running x0.at with a big MIN time, but I guess having more granular control would be nice.
(Weeks are just a multiple of days, so not that useful, but units smaller than days would be)

@Rouji
Copy link
Owner

Rouji commented Aug 25, 2023

I'll also add that with retention times that small, the whole file-size based maths feels kind of useless and you could just simply do a find /files -mmin +59 -delete or something

@TehPeGaSuS
Copy link
Author

What do you mean by abuse, exactly? Compilation errors etc. are neither spam nor illegal nor big enough to be a problem if they're around for a day or even longer.

By abuse I mean people that will use automated processes to send the same file over and over again (yes, I know spammers that will do that eventually) therefore filling up your disk space (I only have 100 GB).

@Rouji
Copy link
Owner

Rouji commented Aug 25, 2023

Yeah you have to deal with that no matter what, really

@Rouji Rouji closed this as completed Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants