SinTan1729 / chhoto-url

A simple, blazingly fast, selfhosted URL shortener with no unnecessary features; written in Rust.
https://hub.docker.com/r/sintan1729/chhoto-url
MIT License
142 stars 15 forks source link

Add setting to disable link deletion #20

Closed Elara6331 closed 5 months ago

Elara6331 commented 5 months ago

Is your feature request related to a problem? Please describe. I'd like to run this as a public service, but that would allow users to delete other people's links

Describe the solution you'd like I'd like an environment variable setting to disable link deletion. It might also be useful to be able to disable viewing active links.

Describe alternatives you've considered There aren't any lightweight alternatives

SinTan1729 commented 5 months ago

This is an interesting idea. But I have to think about how I want to implement it. There should be some way of deleting and listing the links if this is enabled, but I don't want to go multi-user.

SinTan1729 commented 5 months ago

Hi @Elara6331, I've made a PR addressing this. Can you do some testing and let me know if it's working properly? You can access the dev build using the docker image tag dev.