Commit Graph

72 Commits

Author SHA1 Message Date
5c9c40aada
chore(deploy): add resource limits and pod disruption budget
this is useful for HPA

Signed-off-by: SphericalKat <amolele@gmail.com>
2021-06-30 04:00:03 +05:30
81e2b36330
refactor(deploy): update ingress to use production hostname
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-06-29 15:10:02 -07:00
5de1b68864
refactor: don't run embedded migrations upon start
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-06-29 20:03:01 -07:00
d180b8998d
chore(deployment): create issuers and use them to provision TLS certs for katbin service
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-06-29 19:16:16 -07:00
796148a341
refactor(build): use multistage build for docker
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-06-29 18:54:14 -07:00
17adb05970
chore(deployment): create ingress resource
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-06-29 18:53:54 -07:00
99efed41e0
chore(build): set up deployment and service kubernetes configs
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-06-29 18:36:27 -07:00
d4d26e2882
chore(deployment): use docker to deploy katbin
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-06-24 15:20:45 +05:30
d718dea2b0
chore(build): bump nightly toolchain version
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-06-13 22:00:45 +05:30
1cbb699054
chore(cargo): bump crate versions
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-06-13 21:59:21 +05:30
47f1997d7a
chore(build): bump dependencies and rust toolchain
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-05-19 23:24:37 +05:30
05e9a4f51b
chore(deps): bump crate versions
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-03-07 23:01:38 +05:30
10b0341012
ci: add a dockerfile
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-03-02 16:59:10 +05:30
4692d621b3
chore(deps): bump dependencies
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-02-13 00:17:06 +05:30
8ffdb14a40
chore(deps): bump crate versions
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-01-28 01:04:30 +05:30
5de35bd8a0
Create README.md 2021-01-20 23:51:55 +05:30
acf427168c
chore(cargo): bump deps
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-12-17 21:26:32 +05:30
0e04aa2879
fix(catchers): return appropriate http status for internal server errors
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-12-17 21:26:00 +05:30
a0642019c2
config: add an option to set pool size manually
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-11-23 00:29:39 +05:30
3d2c8db5ba
cargo: bump jirachi version
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-11-23 00:24:04 +05:30
17b34e463b
chore(deps): bump cargo dependencies
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-11-22 20:23:55 +05:30
1a5cb0d718
db: set max pool size to 15
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-11-22 20:20:21 +05:30
43df413e57
cargo: bump dependencies
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-10-07 13:52:03 +05:30
ac2028d373
pastes: don't 404 when user does not exist
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 19:59:32 +05:30
b661b7ea8d
pastes: add a route to update pastes
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 19:17:48 +05:30
e001d87f3e
paste: return an extra parameter if the current user is the owner
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 17:04:53 +05:30
28fe55b8db
users: add a route to fetch the user from cookie
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 16:17:37 +05:30
beaca24246
user: add a route to fetch by ID
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 15:43:59 +05:30
97f66956ba
cookies: set secure
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 12:37:41 +05:30
84e3def3f8
cors: allow credentials
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 11:41:05 +05:30
d8abb1ed58
cookies: change domain to .katb.in and set SameSite to lax
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 11:10:10 +05:30
2aef9cb7a1
cors: add Set-Cookie to exposed headers
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 10:50:07 +05:30
4dafd40fcf
Merge pull request #2 from ATechnoHazard/bugfix/jirachi
jirachi: Bump to v0.1.8
2020-09-25 15:48:05 +05:30
supercmmetry
d00a95f84f
jirachi: Bump to v0.1.8
Signed-off-by: supercmmetry <vishaals2000@gmail.com>
2020-09-25 15:29:18 +05:30
9e7fc110ea
users: set a less restrictive domain on the cookie
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-25 09:54:19 +05:30
ebe7bf4594
paste: make URL regex case insensitive
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-24 23:19:07 +05:30
2a3634e5de
dependencies: bump versions
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-24 22:57:43 +05:30
c075068649
pastes: validate URLs using regex
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-24 22:45:48 +05:30
8ac5b3ca8b
heroku: add a procfile
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-08-29 23:58:08 +05:30
2c7f6d8c59
heroku: set default toolchain version
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-08-29 23:42:03 +05:30
4a456aafd6
paste: change return signature of fetching paste
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-08-29 23:37:28 +05:30
51591530d0
routes: use rocket_cors crate to handle CORS
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-08-05 23:07:59 +05:30
3d90c6f9bf
cargo: bump dependencies
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-10 11:12:10 +05:30
e412014a14
cargo: Add missing fields and dev dependencies
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-06 02:29:30 +05:30
5fa4711c48
License project under MIT
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-06 02:21:56 +05:30
b6d73b8fe5
cargo: Update dependencies
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-05 22:31:03 +05:30
62c5d88048
utils: migrate to jirachi for generating unique keys
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-05 22:29:24 +05:30
2b785d3fe4
paste: Make is_url an optional parameter in JSON body
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-02 12:37:56 +05:30
d1625ce721
users: Add routes and methods to activate user
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-01 23:53:15 +05:30
328b14f986
fairings: Failed experiment with templating
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-28 15:31:18 +05:30