Open luochen1990 opened 2 weeks ago
Hello! I've wanted to do something similar myself, and in case you find it helpful I'll share how Caddy + Authelia can be used to make uploading require login:
pastes.example.com {
route /raw/* {
reverse_proxy :4144 {
header_down Content-Type "text/plain; charset=UTF-8"
}
}
@public path /static/* /upload/* /file/* /p/* /raw/* /u/* /qr/* /auth/* /auth_file/*
route @public {
reverse_proxy :4144
}
route * {
import auth
reverse_proxy :4144
}
}
Is your feature request related to a problem? Please describe.
I'm always frustrated when I want to share a big file with my friends, since allowing unauthorised user to upload big file might cause the disk space abused.
Describe the solution you'd like
Allowing user login via OIDC, and add limitation options for login user and unauthorised user seperatelly.