dockerize

This commit is contained in:
2026-05-09 22:19:42 +01:00
parent 79ed58ee23
commit eb9cfd3375
4 changed files with 103 additions and 4 deletions

View File

@@ -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 ¯\_(ツ)_/¯