meeg_leeto
d2e82de338
feat: links are logged to a separate file
...
This should help monitor the use of the link shortener, in particular
for nefarious uses.
Prompted to do this by https://app.y.gy/blog/honeypot
This addition included some minor refactoring.
Of note, is that, previously, every field was required to be defined in
`config.json`. The creation of field-specific types plus the inlcusion
of `#[serde(default)]` does away with this.
Also fixed debug message on config.json version mismatch.
2024-03-01 22:37:47 +00:00
meeg_leeto
415e4e120e
fix: hotfix: log needs to happen after filter rejection fallthrough
2022-05-14 23:47:28 +01:00
meeg_leeto
c60dcce63c
refact: misc warning squashing
2022-05-13 17:20:33 +01:00
meeg_leeto
364e5e8038
misc: refined logging
2022-05-13 17:20:22 +01:00
meeg_leeto
d47a38e143
fix: necessary fixes to logging after testing
2022-05-13 16:57:36 +01:00
meeg_leeto
2aff7bb416
feat: added Logger and wired it up to warp
2022-05-13 16:20:34 +01:00
meeg_leeto
d2109fce65
fix: misc. fix to printing, from bad concatenation
2022-05-13 16:19:57 +01:00
meeg_leeto
165b0e34d0
misc: replaced user facing panics with prints+exit
2022-05-12 19:38:09 +01:00
meeg_leeto
50b0ab56cb
misc: more common line/col formatting
2022-05-12 19:34:24 +01:00
meeg_leeto
9a59da600e
wip: added log rules to configuration file
2022-05-12 19:16:28 +01:00
meeg_leeto
3e0cd31961
refact: refactored validation and reporting of configuration file
2022-05-12 19:16:06 +01:00
meeg_leeto
a5fd6bf61a
feat: --version flag
2022-05-12 18:29:14 +01:00
meeg_leeto
8c12dfc132
feat: versioning of configuration files
2022-05-12 18:29:01 +01:00
meeg_leeto
ce4706c4b1
misc: remove warnings for mandatory fields
2022-05-12 18:27:20 +01:00
meeg_leeto
f49e700dd4
fix: slug collisions were not correctly handled
2022-04-30 15:59:15 +01:00
meeg_leeto
ee7c67dfbf
fix: stricter URLs
2022-04-30 02:14:16 +01:00
meeg_leeto
a9714fe51a
misc: try to be more strict in URL filter
2022-04-30 01:57:29 +01:00
meeg_leeto
adb6853de5
refact: minor refactor
2022-04-30 00:22:47 +01:00
meeg_leeto
23c77c79f3
fix: try to serve anything that doesn't match from the dir
2022-04-30 00:20:44 +01:00
meeg_leeto
f7297cdadd
chore: use regular BASE64 instead
...
From the javascript side, using non-standard base64 was more trouble
than it's worth.
2022-04-30 00:19:57 +01:00
meeg_leeto
927d6d32b9
feat: added the redirect part
2022-04-29 23:30:38 +01:00
meeg_leeto
a10c2a01f0
refact: big refactor + documentation
...
Moved everything to modules, and added documentation to everything.
2022-04-29 22:53:57 +01:00
meeg_leeto
0349a5f465
fix: shortening works!
...
Misunderstood RV, and was trying to convert the redis response to usize
when it should be something compatible with "ok". () worked.
2022-04-29 19:26:43 +01:00
meeg_leeto
1993fa4893
refact: split POST and GET methods
2022-04-29 18:47:18 +01:00
meeg_leeto
1a10b12a5d
refact: removed redundant b64url type
2022-04-29 18:47:04 +01:00
meeg_leeto
eae6b3eec2
fix: building again, but apparently not working
2022-04-28 22:57:29 +01:00
meeg_leeto
9372294297
wip: working out /shorten
2022-04-28 22:17:04 +01:00
meeg_leeto
d8e19e98c8
wip: not working, but definitely serving and doing something with /shorten args
2022-04-27 19:19:08 +01:00
meeg_leeto
31d8157618
wip: db communication
2022-04-25 17:59:30 +01:00
meeg_leeto
c2d813e6c4
fix: finally docker/compose are set up correctly
2022-04-24 23:50:32 +01:00
meeg_leeto
b53646cb64
refact: removed figment dependency
2022-04-15 01:23:55 +01:00
meeg_leeto
a19170db81
wip: flexibility in serve ip/port
2022-04-14 18:14:14 +01:00
meeg_leeto
1cc260b998
wip: still working torwards the Redis oriented arch.
2022-04-14 13:33:32 +01:00
meeg_leeto
703a52ea8f
wip: fixes to last commit to successfully run
2022-04-08 22:47:09 +01:00
meeg_leeto
4d83500fed
wip: integrating docker/redis
...
Still untested, but this commit is a checkpoint as there are currently
no errors in the Rust database.
DOCKERFILE AND DOCKER-COMPOSE ARE STILL COMPLETELY UNTESTED AT THIS
POINT
2022-04-08 22:29:08 +01:00
meeg_leeto
4405448fa2
wip: many pieces moving, still.
...
Working on many things, though it's starting to take shape; the
configuration ouline and its loading (with figment) is well defined
already; working on stabilizing the SQLite connection, and being able to
insert a slug.
2022-03-27 18:09:07 +01:00
meeg_leeto
b0be6e999a
wip: wrangling warp
2022-03-23 19:13:09 +00:00
meeg_leeto
c19d418526
chore: first commit
2022-03-23 11:24:13 +00:00