1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-10-16 21:33:54 -05:00
Commit graph

26 commits

Author SHA1 Message Date
3598199957 For random shorturl adjective-name pair is used 2022-11-11 17:33:31 -06:00
e5f1839822 Code cleanup 2022-11-10 23:19:42 -06:00
deeba64e74 Allow setting site_url 2022-11-10 20:17:39 -06:00
d196c0373f Copy shortUrl after adding to db 2022-11-10 18:11:57 -06:00
fab2924250 Avoid adding duplicate shortUrl 2022-11-08 18:23:41 -06:00
0740bc79aa Auto convert shortlinks to lower case 2022-11-06 22:36:53 -06:00
81fc707d27 Change invalid shorturl error message 2022-11-05 19:18:04 -05:00
b0e7f1ee57 Added logging number of hits 2022-11-03 16:53:04 -05:00
769db79fde Fix error when shorturl is empty 2022-11-02 08:10:27 +00:00
Przemek Dragańczuk
f394f30c17 Now sending data using request body, instead of URL parameters (fixes #7)
Small fixes that I should have done earlier
2020-11-09 10:30:30 +01:00
Przemek Dragańczuk
a26e3fb98f
Closes #5 (#7)
* Added an option to remove authentication

* Updated README to document disabling authentication

Co-authored-by: Przemek Dragańczuk <admin@draganczuk.tk>
2020-09-19 10:01:36 +02:00
Przemek Dragańczuk
e9cf90cea7 - Published to Docker HUB;
- Updated to Java 14
- A bunch of changes I wanted to do earlier
2020-05-23 19:54:27 +02:00
Przemek Dragańczuk
218f2fa368
Sqlite (#2)
* Migrated ur an sqlite database

* Removed unnecessary IOExceptions

* Removed an util class not needed anymore

* Updated README.md and docker-compose.yml to reflect new storage mechanism

* This change was not meant for this branch

* Port change with environment variable

* Unused imports

* Updated README.md

* Added basic protection against duplication
2020-05-23 19:16:27 +02:00
Przemek Dragańczuk
7f275bf6af
Sqlite as storage backend (#1)
Some platforms has some problems with file locking, so I was forced to use an alternative. SQLite seems be the best option currently available


* Migrated to an sqlite database

* Removed unnecessary IOExceptions

* Removed an util class not needed anymore

* Updated README.md and docker-compose.yml to reflect new storage mechanism
2020-03-24 09:07:25 +01:00
Przemek Dragańczuk
25adf04903 Cleaned up the auth a bit 2020-03-24 07:53:17 +01:00
Przemek Dragańczuk
6d7b065e98 Added option to delete a URL 2020-02-16 16:52:54 +01:00
Przemek Dragańczuk
89eb5526ce Added dashes and underscores to permitted characters 2020-02-16 16:08:06 +01:00
Przemek Dragańczuk
1322569cf6 Added a basic input validation for shortUrl 2020-02-16 16:05:09 +01:00
Przemek Dragańczuk
8cd399d2e9 Now only lowercase letters and numbers are generated 2020-02-16 15:58:37 +01:00
Przemek Dragańczuk
59b6d43aea Added Basic auth and GZIP compression 2020-02-16 15:46:29 +01:00
Przemek Dragańczuk
0e09d22025 Switched to environment instead of property 2020-02-14 20:17:40 +01:00
Przemek Dragańczuk
20881d85d4 Small fixes 2020-02-14 20:11:02 +01:00
Przemek Dragańczuk
a61e820b5e Fix all urls and empty shortUrl check 2020-02-14 19:43:45 +01:00
Przemek Dragańczuk
0f41363740 Dynamic port config 2020-02-14 18:42:21 +01:00
Przemek Dragańczuk
cf4d7a8496 Added static file configuration to main 2020-02-14 18:40:14 +01:00
Przemek Dragańczuk
d80024c494 Base api works 2020-02-13 23:52:33 +01:00