Rstudio Community SSL

Isn't it time to allow the following options in rserver.conf for Rstudio Server Community?

#ssl-enabled=1
#ssl-certificate=/etc/letsencrypt/live/../fullchain.pem
#ssl-certificate-key/etc/letsencrypt/live/../privkey.pem

No software should be encouraging the use of http anymore now that most of us work from home and will continue to post-covid.

Will I get away with doing the following in /etc/httpd/conf.d ?

<VirtualHost 136.x.x.x:443>
    ServerName my-server.com

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

#RStudio redirect
RedirectMatch permanent ^/rstudio$ /rstudio/
  
    RewriteEngine on
    RewriteCond %{HTTP:Upgrade} =websocket
    RewriteRule /rstudio/(.*)     ws://localhost:8787/$1  [P,L]
    RewriteCond %{HTTP:Upgrade} !=websocket
    RewriteRule /rstudio/(.*)     http://localhost:8787/$1 [P,L]
    SSLEngine on
    SSLProxyEngine On
    SSLCertificateFile /etc/letsencrypt/live/my-server.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/my-server.com/privkey.pem

    ProxyRequests Off
    ProxyPreserveHost On
    ProxyPass /rstudio/ http://localhost:8787/
    ProxyPassReverse /rstudio/ http://localhost:8787/
</VirtualHost>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.