Update readme
This commit is contained in:
14
README.md
14
README.md
@@ -13,8 +13,20 @@ Core infrastructure stack for multiple independent web apps on one server.
|
|||||||
|
|
||||||
1. Copy `.env.dist` to `.env`.
|
1. Copy `.env.dist` to `.env`.
|
||||||
2. Set real domains and credentials in `.env`.
|
2. Set real domains and credentials in `.env`.
|
||||||
3. Generate auth hashes with `htpasswd -nbB admin 'your-password'`.
|
3. Generate auth hashes with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
htpasswd -nbB admin 'your-password'
|
||||||
|
```
|
||||||
|
|
||||||
4. Escape every `$` in hashes as `$$` before putting them into `.env`.
|
4. Escape every `$` in hashes as `$$` before putting them into `.env`.
|
||||||
|
Quick workaround (auto-escape output):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
htpasswd -nbB admin 'your-password' | sed 's/\\$/$$/g'
|
||||||
|
```
|
||||||
|
|
||||||
|
This prints an `.env`-ready value such as `admin:$$2y$$05$$...`.
|
||||||
5. Start the stack:
|
5. Start the stack:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user