+2
-2
.github/workflows/docker-image.yml
+2
-2
.github/workflows/docker-image.yml
+9
-39
Cargo.lock
+9
-39
Cargo.lock
·····················
·····················
+1
-1
Cargo.toml
+1
-1
Cargo.toml
···
···
+1
-1
Dockerfile
+1
-1
Dockerfile
+29
-13
README.md
+29
-13
README.md
···-A very performant and light (6mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres.···-Find the admin-setup-token pasted into the terminal output, or in admin-setup-token.txt in the container's root.···-If DATABASE_URL is set, it will connect to a Postgres DB. If blank, it will use an sqlite db in /data-On an empty database, an admin-setup-token.txt is created as well as pasted into the terminal output. This is needed to make the admin account.······
···+A very performant and light (2MB in memory) link shortener and tracker. Written in Rust and React and uses Postgres or SQLite.···+- `SIMPLELINK_USER`: Optional. If set along with SIMPLELINK_PASS, creates an admin user on first run+- `INITIAL_LINKS`: Optional. Semicolon-separated list of initial links in format "url,code;url2,code2"+If `SIMPLELINK_USER` and `SIMPLELINK_PASS` are not passed, an admin-setup-token is pasted to the console and as a text file in the project root.·········
+1
-1
docker-compose.yml
+1
-1
docker-compose.yml
+3
migrations/20250219000000_extend_short_code.sql
+3
migrations/20250219000000_extend_short_code.sql
+8
-7
src/auth.rs
+8
-7
src/auth.rs
·········
·········
+1
-5
src/handlers.rs
+1
-5
src/handlers.rs
···············
···············
+158
-1
src/main.rs
+158
-1
src/main.rs
·········
·········
+1
-1
src/models.rs
+1
-1
src/models.rs