Compare commits

...

5 Commits

Author SHA1 Message Date
21f512c2d7 fixed log statement
All checks were successful
/ push_to_registry (push) Successful in 51s
2026-02-02 22:03:08 +01:00
dfda16f8e1 fixed update howto 2026-02-02 22:01:54 +01:00
44bb35abac added basic logging
Some checks failed
/ push_to_registry (push) Failing after 46s
2026-02-02 22:00:01 +01:00
1ae5f9c679 corrected pull url 2026-02-02 21:59:43 +01:00
9a052b3ef7 added more usage tips 2026-02-02 21:53:40 +01:00
3 changed files with 9 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ The latest official docker image is at [https://gitea.scu.si/FlorianWalther/-/pa
You can pull it like this:
```
docker pull gitea.scu.si/florianwalther/password-generator:latest
docker pull gitea.scu.si/florian.walther/password-generator:latest
```
## more usage examples

View File

@@ -48,6 +48,7 @@ func passwordHandler(w http.ResponseWriter, r *http.Request) {
// new help handler
func helpHandler(w http.ResponseWriter, r *http.Request) {
log.Printf("helpHandler called from %s\n", r.RemoteAddr)
helpHTML := `
<!DOCTYPE html>
<html>
@@ -136,6 +137,7 @@ func helpHandler(w http.ResponseWriter, r *http.Request) {
func webHandler(w http.ResponseWriter, r *http.Request) {
log.Printf("webHandler called from %s\n", r.RemoteAddr)
password := generatePassword()
html := fmt.Sprintf(
`<DOCTYPE html>

View File

@@ -14,6 +14,12 @@ After making above changes you have to reload your ~/bashrc, in order to activat
Now you can enter `genpasswd` and get a fresh password from the API Endpoint.
## get 10 fresh passwords
```bash
for i in {1..10}; do echo $(curl -s https://passwd.scu.si/api/password); done
```
# building the app
you can build the app yourself like this:
@@ -75,7 +81,6 @@ docker compose down
In order to update your container to the current version, do this:
```
docker compose pull
docker compose down
docker compose up -d
```