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
739b3ad0c5
doc: removed speculation on the effect of not using docker in README
2023-03-14 14:22:23 +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
5a9d4f6098
feat: merge v1.0.0 from dev
2022-05-13 17:21:49 +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
b86ead74a4
chore: add the necessary log/ directory to data/
2022-05-13 16:50:56 +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
4dfa764603
chore: updated config.json to match changes
2022-05-12 19:34:10 +01:00
meeg_leeto
8bac40ebdc
chore: bumped MAJOR because of configuration file brk. chng.
2022-05-12 19:19:27 +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
464965ae33
fix: cargo really is ignoring PROFILE venv
2022-04-30 14:24:31 +01:00
meeg_leeto
05c3072037
fix: -i -> -u lonk
2022-04-30 03:10:21 +01:00
meeg_leeto
c34309b1b7
fix: crash where compiling for the first time
2022-04-30 03:08:53 +01:00
meeg_leeto
e220d67fe3
doc: more info on README about what it is
2022-04-30 02:53:38 +01:00
meeg_leeto
7312bc7bcb
doc: Added README and LICENCE
2022-04-30 02:49:51 +01:00
meeg_leeto
fbeee0342d
misc: prepare master branch
2022-04-30 02:49:35 +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
df0cff37af
fix: minor fixes to the HTTP frontend
2022-04-30 01:47:34 +01:00
meeg_leeto
6c7b06f021
feat: HTTP interface fully functional
2022-04-30 01:36:15 +01:00
meeg_leeto
b3f73fde50
feat: barebones HTML interface is working
2022-04-30 00:53:42 +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
97d19a5b80
chore: merge wip
2022-04-21 22:12:24 +01:00
meeg_leeto
fc001933d1
fix: proper env w/ docker compose
2022-04-21 22:10:14 +01:00
meeg_leeto
2f3884b223
misc: updated config.json to match new defaults
2022-04-21 22:08:02 +01:00
meeg_leeto
63a404822a
fix: dockerfile
2022-04-21 17:53:55 +01:00
meeg_leeto
85d240906d
misc: added .dockerignore to ignore target/
2022-04-21 17:52:55 +01:00
meeg_leeto
6f4a1c25c9
fix: docker-compose
2022-04-21 17:52:05 +01:00