dockerize
This commit is contained in:
10
readme.md
10
readme.md
@@ -26,6 +26,13 @@ a _really_ simple url shortener: less than 200 lines of Rust and one dependency
|
||||
urls-txt path/to/urls.txt
|
||||
```
|
||||
|
||||
the default bind address is `127.0.0.0:3000`.
|
||||
this can be changed using the environment variable `URLS_TXT_BIND_ADDRESS`.
|
||||
|
||||
## usage (docker)
|
||||
|
||||
a working [dockerfile](./Dockerfile) and [compose file](./compose.yaml) are provided.
|
||||
|
||||
## why?
|
||||
|
||||
all url shorteners i've come across are too complicated:
|
||||
@@ -56,9 +63,8 @@ pls.cx {
|
||||
```
|
||||
location / { return 301 http://alv.cx; }
|
||||
location /urls-txt { return 301 https://git.alv.cx/alvierahman90/urls-txt; }
|
||||
|
||||
```
|
||||
|
||||
##### apache
|
||||
#### apache
|
||||
|
||||
there's probably a way ¯\_(ツ)_/¯
|
||||
|
||||
Reference in New Issue
Block a user