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:08] – admin | linux:webhosting [2026/10/25 15:43] (current) – gsys | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Webhosting | + | ====== Webhosting |
| < | < | ||
| Line 20: | Line 20: | ||
| ==== Generate Credentials ==== | ==== Generate Credentials ==== | ||
| + | :!: insecure default MD5 | ||
| < | < | ||
| - | htpasswd -n | + | htpasswd -n testuser |
| - | htpasswd -c ~/ | + | # on standard output rather than updating a file |
| - | htpasswd ~/ | + | htpasswd -c ~/ |
| + | htpasswd ~/ | ||
| </ | </ | ||
| + | |||
| + | :-) secure bcrypt | ||
| + | < | ||
| + | htpasswd -nBC 10 testuser | ||
| + | # -n Show ouput on stdout | ||
| + | # | ||
| + | # -C 10 | ||
| + | </ | ||
| + | |||
| + | === Traefik === | ||
| + | |||
| + | **Don' | ||
| + | |||
| + | use this command: | ||
| + | |||
| + | < | ||
| + | echo $(htpasswd -nB werner) | sed -e s/ | ||
| + | </ | ||
| + | |||
| + | in the docker compose file: | ||
| + | < | ||
| + | ... | ||
| + | labels: | ||
| + | - " | ||
| + | - " | ||
| + | - " | ||
| + | - " | ||
| + | - " | ||
| + | ... | ||
| + | </ | ||
linux/webhosting.1684145306.txt.gz · Last modified: (external edit)