Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 33fe4b2b80 | |||
| 21f512c2d7 | |||
| dfda16f8e1 |
5
main.go
5
main.go
@@ -42,13 +42,14 @@ func generatePassword() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func passwordHandler(w http.ResponseWriter, r *http.Request) {
|
func passwordHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
log.Printf("APIHandler called from %s\n", r.RemoteAddr)
|
||||||
password := generatePassword()
|
password := generatePassword()
|
||||||
fmt.Fprint(w, password)
|
fmt.Fprint(w, password)
|
||||||
}
|
}
|
||||||
|
|
||||||
// new help handler
|
// new help handler
|
||||||
func helpHandler(w http.ResponseWriter, r *http.Request) {
|
func helpHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
log.Printf("helpHandler called from %s\n", r.RemoteAddr())
|
log.Printf("helpHandler called from %s\n", r.RemoteAddr)
|
||||||
helpHTML := `
|
helpHTML := `
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
@@ -137,7 +138,7 @@ func helpHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
|
|
||||||
func webHandler(w http.ResponseWriter, r *http.Request) {
|
func webHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
log.Printf("webHandler called from %s\n", r.RemoteAddr())
|
log.Printf("webHandler called from %s\n", r.RemoteAddr)
|
||||||
password := generatePassword()
|
password := generatePassword()
|
||||||
html := fmt.Sprintf(
|
html := fmt.Sprintf(
|
||||||
`<DOCTYPE html>
|
`<DOCTYPE html>
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ docker compose down
|
|||||||
In order to update your container to the current version, do this:
|
In order to update your container to the current version, do this:
|
||||||
```
|
```
|
||||||
docker compose pull
|
docker compose pull
|
||||||
docker compose down
|
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user