Skip to content

Commit

Permalink
Merge pull request #169 from sol-eng/add-port-description
Browse files Browse the repository at this point in the history
Add information to the final message regarding how to access Workbench
  • Loading branch information
tnederlof authored May 12, 2023
2 parents eaaa6d1 + 6e0f14a commit fc8d95a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,21 @@ func newSetup(setupOpts setupOpts) error {
adDocURL = "https://support.posit.co/hc/en-us/articles/360016587973-Integrating-RStudio-Workbench-RStudio-Server-Pro-with-Active-Directory-using-CentOS-RHEL"
}

var sslEnabled bool
matched, err := system.CheckStringExists("ssl-enabled=1", "/etc/rstudio/rserver.conf")
if err == nil && matched {
sslEnabled = true
}
var serverAccessMessage string
if sslEnabled {
serverAccessMessage = "To access Workbench in a web browser navigate to https://YOUR_SERVER_URL.com, replacing YOUR_SERVER_URL.com with the actual URL of this server. \n\n"
} else {
serverAccessMessage = "To access Workbench in a web browser navigate to http://YOUR_SERVER_URL.com:8787 replacing YOUR_SERVER_URL.com with the actual URL of this server. By default Workbench runs on port 8787 when using HTTP, visit the Admin Guide for more information on how to change this: https://docs.posit.co/ide/server-pro/access_and_security/network_port_and_address.html \n\n"
}

finalMessage := "\nThank you for using wbi! \n\n" +
"Workbench is now configured using the default PAM authentication method. Users with local Linux accounts and home directories should be able to log in to Workbench. \n\n" +
serverAccessMessage +
"Workbench integrates with a variety of Authentication types. To learn more about specific integrations, visit the documentation links below:\n" +
"For more information on PAM authentication https://docs.posit.co/ide/server-pro/authenticating_users/pam_authentication.html. \n" + "For more information on Active Directory authentication " + adDocURL + ". \n" +
"For more information on SAML Single Sign-On authentication https://docs.posit.co/ide/server-pro/authenticating_users/saml_sso.html. \n" +
Expand Down

0 comments on commit fc8d95a

Please sign in to comment.