You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
I'd like to add support for guest users. When a user has its guest field set to true in the config, it should have similar rights to a normal user, except it shouldn't be able to access the /rate_and_tag endpoint.
I think I'd also like to rate-limit how many songs guests can download, except I'm not sure how that should work. Maybe the handler for /song could just limit them to X songs per minute for some low value of X. I'm not sure how to persist the count so it can be shared among instances: using datastore seems like it may not be great in terms of requiring a read and write for each request, but maybe it wouldn't be a big deal. Memcache is an option, but the count might be evicted frequently on the free shared service. The easy-but-cheesy option would be to only track the count in-memory in each instance and accept that the limit won't be properly enforced when requests are sent to different instances.
The text was updated successfully, but these errors were encountered:
Add a field to the User config struct that can be used to
specify tags that clients should use to filter songs. Also
add a /user endpoint that clients can call to get user info.
The output returned by /tags is filtered using the user's
excluded tags, but the songs returned by /export and /songs
aren't currently affected since it seems easier to just let
the client do its own filtering.
See #50.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd like to add support for guest users. When a user has its
guest
field set totrue
in the config, it should have similar rights to a normal user, except it shouldn't be able to access the/rate_and_tag
endpoint.I think I'd also like to rate-limit how many songs guests can download, except I'm not sure how that should work. Maybe the handler for
/song
could just limit them to X songs per minute for some low value of X. I'm not sure how to persist the count so it can be shared among instances: using datastore seems like it may not be great in terms of requiring a read and write for each request, but maybe it wouldn't be a big deal. Memcache is an option, but the count might be evicted frequently on the free shared service. The easy-but-cheesy option would be to only track the count in-memory in each instance and accept that the limit won't be properly enforced when requests are sent to different instances.The text was updated successfully, but these errors were encountered: