shinyproxy icon indicating copy to clipboard operation
shinyproxy copied to clipboard

How to specify 'simple' authentication in a separate file

Open mg515 opened this issue 5 years ago • 2 comments

I'm running shinyproxy as a systemd service (installed through .deb). Is there any way to specify user and password information in a separate, hidden, and protected file. I tried to chmod 700 the application.yml file also, but the shinyproxy service then couldn't access the file. What is the best practice here? I want to use simple authentication, but not leave passwords exposed.

Thanks!

mg515 avatar May 22 '19 15:05 mg515

Hi @mg515 ,

Would the following topic on the openanalytics forum be of any help?

https://support.openanalytics.eu/t/environment-variables-inside-application-yml/787

Best regards,

Michael

michaelhogersosis avatar May 22 '19 15:05 michaelhogersosis

It seems like a working solution, but overly complicated for a relatively simple problem. I will try it out however, if there isn't a better idea. How would I set permissions of the .yml file to protect it sufficiently and still be able to use it within shinyproxy?

mg515 avatar May 27 '19 08:05 mg515

Hi, in recent releases of ShinyProxy it's possible to specify additional config files to load. I just documented this here: https://shinyproxy.io/documentation/configuration/#config-import

I'll close this issue, but feel free to re-open or open a new issue if you still experience an issue.

LEDfan avatar May 16 '24 10:05 LEDfan