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 [2024/02/17 19:03] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Webhosting | + | ====== Webhosting |
< | < | ||
Line 21: | Line 21: | ||
==== Generate Credentials ==== | ==== Generate Credentials ==== | ||
< | < | ||
- | htpasswd -n | + | htpasswd -n werner |
+ | # on standard output rather than updating a file | ||
htpasswd -c ~/ | htpasswd -c ~/ | ||
htpasswd ~/ | htpasswd ~/ | ||
</ | </ | ||
+ | |||
+ | === Traefik === | ||
+ | |||
+ | ** Don't forget to escape dollar signs ($ -> $$) in traefik docker compose files! ** | ||
+ | |||
+ | use this command: | ||
+ | |||
+ | < | ||
+ | echo $(htpasswd -nB werner) | sed -e s/ | ||
+ | </ | ||
+ | |||
+ | in the docker compose file: | ||
+ | < | ||
+ | ... | ||
+ | labels: | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | ... | ||
+ | </ |
linux/webhosting.1684145306.txt.gz · Last modified: 2024/02/17 19:03 (external edit)