Skip to content

Commit

Permalink
remove howto page
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrosius committed Dec 29, 2024
1 parent f1bca9a commit 8fbeb0b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 91 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ All you need to do is import and trust the generated Root-Certificate once to yo

This certificates can then be used, to configure SSL for or replace the selfsigned cert of your HomeLAB services.

Then your internal sites show secure connections in all modern browsers.
Then your internal sites show secure connections (without warnings) in all modern browsers.

## Features

Expand All @@ -30,7 +30,7 @@ As an alternative you can clone the repo and compile the project by yourself loc

When Homelab Cert Manager has started, got to https://<IP-Of-HomeLAB Cert Manager>:8443 or https://<IP-Of-DockerHost>: and whatever port is used when running as docker-container.

Use admin/admin as Username/Password
Use admin/admin as initial Username/Password

- Create HomeLAB Root Certificate
- add new HomeLAB Root Certificate to trusted Root-Certificates on your local machine
Expand Down
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ func main() {
authorized.POST("/certificates/delete/root-cert/:filename", deleteRootCertificate) // Route for deleting root certificate
authorized.GET("/settings", showSettingsPage) // Route for settings page
// r.POST("/settings", handleSettings) // Route for saving settings
authorized.GET("/howto", showHowToPage) // Add this new route
authorized.POST("/recreate-homelab-cert", recreateHomelabCertificate)

authorized.GET("/settings/certmanager", handleCertManagerSettings)
Expand Down Expand Up @@ -299,11 +298,6 @@ func showSettingsPage(c *gin.Context) {
})
}

func showHowToPage(c *gin.Context) {
isDefaultPassword := viper.GetString("password") == hashPassword("admin")
c.HTML(http.StatusOK, "howto.html", gin.H{"defaultPassword": isDefaultPassword})
}

func loadRootCertAndKey() (*x509.Certificate, *rsa.PrivateKey, error) {
// Read root certificate
certPEM, err := os.ReadFile("data/root-cert/HomeLab_Root_CA.pem")
Expand Down
1 change: 0 additions & 1 deletion templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<ul id="dropdown1" class="dropdown-content">
<li><a href="/certificates" class="text-important">Certificate List</a></li>
<li><a href="/settings" class="text-important">Settings</a></li>
<li><a href="/howto" class="text-important">How-To Guide</a></li>
<li class="divider"></li>
<li><a href="/logout" class="text-important">Logout</a></li>
</ul>
Expand Down
82 changes: 0 additions & 82 deletions templates/howto.html

This file was deleted.

0 comments on commit 8fbeb0b

Please sign in to comment.