update readme
This commit is contained in:
parent
24e305c8ff
commit
bbd0da0473
|
|
@ -12,7 +12,7 @@ Repository: [nzambello/redirector](https://git.nzambello.dev/nzambello/redirecto
|
|||
|
||||
```sh
|
||||
yarn install
|
||||
REDIRECT_URL=https://nzambello.dev PERMANENT=true yarn start
|
||||
REDIRECT_URL=https://nzambello.dev PERMANENT=true PRESERVE_PATH=false yarn start
|
||||
```
|
||||
|
||||
Then, open http://localhost:8787/ in your browser.
|
||||
|
|
@ -34,7 +34,7 @@ It loads configuration from environment variables:
|
|||
### Docker example
|
||||
|
||||
```sh
|
||||
docker run -p 8787:8787 -e REDIRECT_URL=https://nzambello.dev -e PERMANENT=true nzambello/redirector:latest
|
||||
docker run -p 8787:8787 -e REDIRECT_URL=https://nzambello.dev -e PERMANENT=true PRESERVE_PATH=false nzambello/redirector:latest
|
||||
```
|
||||
|
||||
### Docker compose example
|
||||
|
|
@ -48,6 +48,7 @@ services:
|
|||
environment:
|
||||
- REDIRECT_URL=https://nzambello.dev
|
||||
- PERMANENT=true
|
||||
- PRESERVE_PATH=false
|
||||
ports:
|
||||
- 8787:8787
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue