linux:webhosting
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:webhosting [2023/05/15 12:19] – admin | linux:webhosting [2026/10/25 15:43] (current) – gsys | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| ==== Generate Credentials ==== | ==== Generate Credentials ==== | ||
| + | :!: insecure default MD5 | ||
| < | < | ||
| - | htpasswd -n werner | + | htpasswd -n testuser |
| - | # on standard output rather than updating a file | + | # on standard output rather than updating a file |
| - | htpasswd -c ~/ | + | htpasswd -c ~/ |
| - | htpasswd ~/ | + | htpasswd ~/ |
| + | </ | ||
| + | |||
| + | :-) secure bcrypt | ||
| + | < | ||
| + | htpasswd -nBC 10 testuser | ||
| + | # -n Show ouput on stdout | ||
| + | # | ||
| + | # -C 10 | ||
| </ | </ | ||
| === Traefik === | === Traefik === | ||
| - | ** Don't forget to escape dollar signs ($ -> $$) in traefik docker compose files! ** | + | **Don' |
| - | example: | + | use this command: |
| < | < | ||
| - | htpasswd -n werner | + | echo $(htpasswd -nB werner) | sed -e s/\\$/\\$\\$/g |
| - | New password: | + | |
| - | Re-type new password: | + | |
| - | werner:$rpr1$3FS0FG.s$rf0h/7C36ABYDS45XKEQ. | + | |
| </ | </ | ||
| Line 43: | Line 49: | ||
| < | < | ||
| ... | ... | ||
| - | |||
| labels: | labels: | ||
| - " | - " | ||
| - " | - " | ||
| - " | - " | ||
| + | - " | ||
| - " | - " | ||
| - | |||
| ... | ... | ||
| </ | </ | ||
linux/webhosting.1684145983.txt.gz · Last modified: (external edit)