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

Feature Request: lifetime restrictions in server config #35

Open
bioryb opened this issue Jun 11, 2016 · 4 comments
Open

Feature Request: lifetime restrictions in server config #35

bioryb opened this issue Jun 11, 2016 · 4 comments
Assignees
Milestone

Comments

@bioryb
Copy link

bioryb commented Jun 11, 2016

Hi once again :)
It would be nice - I think not only for my requirements - to set the lifetime more restrictive by the admin. So the admin could say maybe it is only allowed to set 1d and 1w . Maybe another admin would like to have that files are generally and only available for 1 day (1d).
If this could be set in the server config - that would really be cool. The client must not really be changed. If he selects a time that is not supported by the server, the file lifetime is set to default.

For the upload by the webui, I changed the template to only support 1w . That works, but not for the terminal client ;) (I do not know programing in go :-/ )

Thank you very much!

@Depado Depado added this to the 1.1 milestone Jun 11, 2016
@Depado
Copy link
Owner

Depado commented Jun 11, 2016

Thanks for your input once again. I had this in mind, and at the start of goploader it was configured like that. I'll think of something for the next version. I'll work on that tomorrow.

Something like :

allowed_limits:
    - 1d
    - 1w

If you had something else in mind for the configuration file, please tell me 👍
I'll have to think of a more generic system for that. I love getting inputs on my projects. I'll set that for the 1.1 milestone which I intend to release soon, with the other improvements you asked.

As for #31 I still don't know where that comes from.

@bioryb
Copy link
Author

bioryb commented Jun 11, 2016

Maybe

  • allowed file types?
  • set defaults in config (client)
  • monitoring intervall for cleanup

@Depado
Copy link
Owner

Depado commented Jun 11, 2016

As for the allowed file types, I'm not sure I can provide a safe way of filtering. Plus that would cause issues for files uploaded from stdin from the client.

The defaults for the client is a pretty good idea indeed. I'll investigate that.

Shouldn't be a problem to add a monitoring interval for cleanups.

I'll create the issues (otherwise I'll forget) Thanks a lot 👍

@bioryb
Copy link
Author

bioryb commented Jun 12, 2016

Forget about the filetypes;)

@Depado Depado self-assigned this Jun 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants