Commit Graph

113 Commits

Author SHA1 Message Date
9336fb5506 Set access logs to debug, millisecond process time, pluralize word option
I'm unsure if it's good to use string notation in the duration, maybe duration_ms to imply the unit would be better?
2024-11-01 15:47:28 -05:00
bcb1441251 Switch main app loggers to structlog, fix improper structlogs 2024-11-01 15:47:28 -05:00
f93df47b67 Disable X-Process-Time response header 2024-11-01 15:47:28 -05:00
3232e89d0a Bump project version to 0.2.0 2024-11-01 15:47:28 -05:00
a873c4785d Access environment variables directly in setup_logging 2024-11-01 15:47:28 -05:00
1741739310 Disable handlers, setup propagation with uvicorn log_config
Apparently this was what I have been chasing for the last few hours.
2024-11-01 15:47:28 -05:00
3a2ef75086 Add ASGI Request-Id correlation, add structlog LoggingMiddleware, overhaul all logging
- minor formatting details, type fixes.
2024-11-01 15:47:28 -05:00
a96631e81e Setup structlog, delete randomized IPs on startup
- minor formatting, type fixes
2024-11-01 15:47:28 -05:00
0816ddcdca Switch from hypercorn to uvicorn, structlog testing 2024-11-01 15:47:28 -05:00
91cc8e24b6 Remove deprecated startup/shutdown events into proper applicaiton Lifespan definition 2024-11-01 15:47:28 -05:00
f8b76c757c Initial logging improvements, switch run.sh to direct module 'serve' cmd 2024-11-01 15:47:28 -05:00
902eb74deb Add 'structlog' module 2024-11-01 15:47:28 -05:00
5a288cf87c Only import CORSMiddleware in development mode 2024-11-01 15:47:28 -05:00
cb76965a43 Add run.sh warning note to README 2024-11-01 15:47:28 -05:00
af91adeca3 Overhaul README.md with more instructions (env vars, railway CLI, usage, asdf install) 2024-11-01 15:47:28 -05:00
5390fb57a7 Overhaul run.sh scripts
- Default environment variables through this, instead of .env
- Added some basic checks to ensure developers don't stub their toe
- Use `railway link`, injecting environment variables without insecure dotenv files
2024-11-01 15:47:28 -05:00
f034b41da1 Add .env.example in proper places 2024-11-01 15:47:28 -05:00
109e09df50 Add note on purpose of poetry version in Nixpacks config 2024-11-01 15:47:28 -05:00
b962966080 Move .tool-versions to project root 2024-11-01 15:47:22 -05:00
5360d24543 python analysis extraPath (import resolution) sprintOne v0.1.0 2024-10-24 13:01:13 -05:00
1380ae5497 only hide ip if it's not the same as user_ip 2024-10-24 04:38:37 -05:00
5815c2b6d1 frontend: error handling 2024-10-24 04:26:00 -05:00
bc0ef7728f reformat, add docs 2024-10-24 04:23:35 -05:00
c25e335fc9 Add psycopg2 (!!!) 2024-10-24 04:23:29 -05:00
6f26df1939 Update frontend to use new IP listing feature 2024-10-24 04:18:16 -05:00
4267d40611 development mode checks 2024-10-24 04:18:08 -05:00
c0d135d8a8 revamp ip address demo, buffered background IP submit with upsert, parameterized SQL with psycopg2 cursor & execute_values 2024-10-24 04:04:09 -05:00
25177a3346 get_ip helper method, hide_ip helper, docs 2024-10-24 04:03:28 -05:00
77d8586772 add human-readable, apscheduler, bpython (dev) 2024-10-24 04:03:09 -05:00
d364239523 responses.py (pydantic models) 2024-10-24 04:02:30 -05:00
2ae2b6af52 reformat: migrate.py 2024-10-24 04:02:18 -05:00
98ef2d2aa6 Enable reloader for hypercorn (does nothing?), add repl command with bpython 2024-10-24 04:01:39 -05:00
a3d5bb4592 Fix improper column name scheme 2024-10-24 04:01:18 -05:00
cd959ffa48 migration: ipaddress_count 2024-10-23 18:34:35 -05:00
110626048b Improve migration script with prompts, warnings, finish TODOs 2024-10-23 18:34:24 -05:00
9d116442a4 Update initial migration to proper 2024-10-23 17:56:34 -05:00
93b56cc7cf Improve migration handling, base model exclusion, initial migration creation/application 2024-10-23 17:56:19 -05:00
7b7ac7c29e Add first migration, initial 2024-10-23 17:28:41 -05:00
d32b11987d Setup models, setup customized migration flow concept 2024-10-23 17:28:36 -05:00
f0b1e88305 Update hypercorn invocations for app.py 2024-10-23 17:27:47 -05:00
945256e682 peewee, peewee-migrate, typeshed, cache modules 2024-10-23 17:27:33 -05:00
e1f414f2e9 Setup module entrypoint, main.py becomes app.py, add FastAPI Cache with InMemory backend, /api/migration route 2024-10-23 17:27:03 -05:00
e637d47efa Add health check path for backend 2024-10-16 01:29:47 -05:00
c7751097b2 document frontend setup, backend startup, TODOs 2024-10-16 01:28:20 -05:00
30d9d96838 limit width, ensure body is max min height 2024-10-16 01:16:38 -05:00
54268297df fix browser URL, prod is relative URL 2024-10-16 01:14:20 -05:00
d5b7f066b3 Fixup backend URL target on frontend, devmode fast refresh 2024-10-16 01:07:27 -05:00
862a4fbc45 Reformat source files 2024-10-16 01:01:57 -05:00
59d0440946 Fix railway startCommand for backend 2024-10-16 00:54:27 -05:00
3a3c72ceb0 Tune nixpacks poetry version, stick to 1.8.4 2024-10-16 00:50:14 -05:00