Almost guaranteed to be a violation of fire code, so make sure to take it down before inspections. Something like this will give you flexibility:
https://www.amazon.com/dp/B002DN6QX2
Likely available at a hardware store near you. Worst case? Get a small lamp and attach it to the ceiling. Again, I'd look for something easy to remove. I picked up one of these for a different purpose, but it's super lightweight and simple, and serves as an example for what I'm thinking: