Add option for temporary redirection

This commit is contained in:
SinTan1729
2023-04-28 00:22:30 -05:00
parent ca01676916
commit f3984624d9
3 changed files with 17 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ export site_url=<url>
cd actix
cargo run
```
You can optionally set the port the server listens on by appending `--port=[port]`
You can optionally set the port the server listens on by appending `--port=[port]`.
### 4. Navigate to `http://localhost:4567` in your browser, add links as you wish.
## Running with docker
@@ -122,6 +122,9 @@ docker run -p 4567:4567 \
-d simply-shorten:latest
```
You can also set the redirect method to Permanent 308 (default) or Temporary 307 by setting
the `redirect_method` variable to `TEMPORARY` or `PERMANENT` (it's matched exactly).
## Disable authentication
If you do not define a password environment variable when starting the docker image, authentication
will be disabled.