Commit Graph

  • d612625de8 Add session model, use utc_now utility Xevion 2024-11-07 11:32:24 -06:00
  • 95b05e077a delete all old IPAddress related model code Xevion 2024-11-07 11:31:03 -06:00
  • bc1a6f927f Add utc_now for deprecated datetime.datetime.utcnow Xevion 2024-11-07 11:30:34 -06:00
  • 361fc13741 Remove IPAddress model, add User model Xevion 2024-11-07 11:03:21 -06:00
  • 04ed915f28 backend run.sh defaults to pretty logs on debug level Xevion 2024-11-07 11:03:06 -06:00
  • b4da253583 add pwdlib[argon2] packages for hashing Xevion 2024-11-07 11:02:50 -06:00
  • 8515879448 Revert "temp: try uvicorn command in railway.json" Xevion 2024-11-01 20:48:18 -05:00
  • 45ec5c396c temp: try uvicorn command in railway.json Xevion 2024-11-01 20:44:40 -05:00
  • 1003fd3eed hotfix: re-add hypercorn with railway start cmd/logging.toml, restore internal uvicorn bindings to conditional ip-v4/v6 Xevion 2024-11-01 20:21:56 -05:00
  • e2a47c1868 hotfix: listen on 0.0.0.0 IPv4 interface binding Xevion 2024-11-01 19:34:11 -05:00
  • 24a3ae5f24 Merge pull request #9 from Xevion/0.2.2 v0.2.2 Xevion 2024-11-01 19:20:23 -05:00
  • f8d1edcf3b Bump project version to 0.2.2 Xevion 2024-11-01 19:18:36 -05:00
  • 43bf96e5c1 Add orjson JSON serializer for FastAPI & structlog performance Xevion 2024-11-01 19:17:57 -05:00
  • b561ec6998 Improve migrate, responses docs, require min length 9 migration name (validator) Xevion 2024-11-01 18:42:35 -05:00
  • 75e875e61d Switch migrate.py to structlog, remove unused old testing code Xevion 2024-11-01 18:37:10 -05:00
  • 3b3f3ba784 Fix unspecified IPv6 addresses from being malformed by hide_ip, fix double private get_database_url breaking Xevion 2024-11-01 18:24:06 -05:00
  • 204be26201 Improve migrate.py docs, variable names Xevion 2024-11-01 18:17:38 -05:00
  • b7d9b256d9 Minor documentation improvement in utilities.py Xevion 2024-11-01 18:12:34 -05:00
  • 01f6d348cd Improve models.py documentation, small DATABASE_URL check Xevion 2024-11-01 18:09:50 -05:00
  • cf7536a39b Add get_db utility function Xevion 2024-11-01 18:01:26 -05:00
  • 85a2d82832 Remove deprecated utcnow() usage, pass UTC TzInfo instead Xevion 2024-11-01 17:54:36 -05:00
  • 1ecab265ac Raise level for apscheduler.scheduler logger, add TODO for easier log configuration Xevion 2024-11-01 17:51:57 -05:00
  • b67272392a Improve logging.py documentation Xevion 2024-11-01 17:51:22 -05:00
  • 0407dba4d1 Updated CHANGELOG.md Xevion 2024-11-01 17:46:56 -05:00
  • 52df0c571f Fix IPv4 interface bind in production, fix reloader enabled in production Xevion 2024-11-01 17:45:37 -05:00
  • 65701b7178 Improve entrypoint documentation & debug logs Xevion 2024-11-01 17:45:07 -05:00
  • 53bf74dcd7 Merge pull request #7 from Xevion/0.2-fix v0.2.1 Xevion 2024-11-01 17:11:49 -05:00
  • e61b2a7f60 Bump project version to 0.2.1 Xevion 2024-11-01 17:05:33 -05:00
  • 185b2f5589 Fixed blockquote alerts in README, mild reformatting Xevion 2024-11-01 16:58:55 -05:00
  • 7a27175423 Remove development mode check for ip_pool generation Xevion 2024-11-01 16:56:39 -05:00
  • 2b1886acd9 Merge pull request #6 from Xevion/0.2 v0.2.0 Xevion 2024-11-01 16:44:24 -05:00
  • a894dd83c1 Add CHANGELOG.md Xevion 2024-11-01 16:40:17 -05:00
  • e1bbeedaf2 Remove 'ms' suffix from 'duration' log key, re-enable X-Process-Time header in development mode Xevion 2024-11-01 16:38:20 -05:00
  • 441ab00da3 Move is_development into utilities.py Xevion 2024-11-01 16:37:39 -05:00
  • 40669b8f08 Fix human_readable not handling UTC dates properly, add types-pytz Xevion 2024-11-01 16:36:47 -05:00
  • daf9254596 Passthrough arguments for backend/run.sh Xevion 2024-11-01 16:23:23 -05:00
  • 40385c9739 Hide, don't clear seenIps upon error Xevion 2024-11-01 16:15:35 -05:00
  • 10b93d41d6 Reformat all python files, remove unused imports Xevion 2024-11-01 16:13:01 -05:00
  • 4b85153065 Clear client's seen IPs list upon error Xevion 2024-11-01 16:12:37 -05:00
  • 57aa841871 Use datetime.utcnow instead, eliminate timezone consideration Xevion 2024-11-01 16:12:16 -05:00
  • 8b85fe7040 Add VSCode Spellcheck manual exceptions Xevion 2024-11-01 16:10:19 -05:00
  • 796c28d72d Switch railway.json startCommand to module serve, use PORT variable Xevion 2024-11-01 16:02:40 -05:00
  • 267abfe792 Remove old hypercorn command with unused logging.toml Xevion 2024-11-01 16:01:58 -05:00
  • 6fe1a8b60f Use logger not logging, use keyword arguments for structured logging Xevion 2024-11-01 15:40:01 -05:00
  • 9336fb5506 Set access logs to debug, millisecond process time, pluralize word option Xevion 2024-11-01 15:10:09 -05:00
  • bcb1441251 Switch main app loggers to structlog, fix improper structlogs Xevion 2024-11-01 15:09:15 -05:00
  • f93df47b67 Disable X-Process-Time response header Xevion 2024-11-01 14:58:46 -05:00
  • 3232e89d0a Bump project version to 0.2.0 Xevion 2024-11-01 14:56:59 -05:00
  • a873c4785d Access environment variables directly in setup_logging Xevion 2024-11-01 14:56:53 -05:00
  • 1741739310 Disable handlers, setup propagation with uvicorn log_config Xevion 2024-11-01 14:56:40 -05:00
  • 3a2ef75086 Add ASGI Request-Id correlation, add structlog LoggingMiddleware, overhaul all logging Xevion 2024-11-01 04:17:28 -05:00
  • a96631e81e Setup structlog, delete randomized IPs on startup Xevion 2024-11-01 02:43:37 -05:00
  • 0816ddcdca Switch from hypercorn to uvicorn, structlog testing Xevion 2024-11-01 02:41:58 -05:00
  • 91cc8e24b6 Remove deprecated startup/shutdown events into proper applicaiton Lifespan definition Xevion 2024-11-01 02:40:39 -05:00
  • f8b76c757c Initial logging improvements, switch run.sh to direct module 'serve' cmd Xevion 2024-11-01 02:06:48 -05:00
  • 902eb74deb Add 'structlog' module Xevion 2024-11-01 02:06:28 -05:00
  • 5a288cf87c Only import CORSMiddleware in development mode Xevion 2024-11-01 01:09:14 -05:00
  • cb76965a43 Add run.sh warning note to README Xevion 2024-11-01 01:06:43 -05:00
  • af91adeca3 Overhaul README.md with more instructions (env vars, railway CLI, usage, asdf install) Xevion 2024-11-01 01:04:21 -05:00
  • 5390fb57a7 Overhaul run.sh scripts Xevion 2024-11-01 01:03:56 -05:00
  • f034b41da1 Add .env.example in proper places Xevion 2024-11-01 00:58:12 -05:00
  • 109e09df50 Add note on purpose of poetry version in Nixpacks config Xevion 2024-11-01 00:57:59 -05:00
  • b962966080 Move .tool-versions to project root Xevion 2024-11-01 00:57:47 -05:00
  • 5360d24543 python analysis extraPath (import resolution) v0.1.0 sprintOne Xevion 2024-10-24 13:01:13 -05:00
  • 1380ae5497 only hide ip if it's not the same as user_ip Xevion 2024-10-24 04:38:37 -05:00
  • 5815c2b6d1 frontend: error handling Xevion 2024-10-24 04:26:00 -05:00
  • bc0ef7728f reformat, add docs Xevion 2024-10-24 04:23:35 -05:00
  • c25e335fc9 Add psycopg2 (!!!) Xevion 2024-10-24 04:23:29 -05:00
  • 6f26df1939 Update frontend to use new IP listing feature Xevion 2024-10-24 04:18:16 -05:00
  • 4267d40611 development mode checks Xevion 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 Xevion 2024-10-24 04:04:09 -05:00
  • 25177a3346 get_ip helper method, hide_ip helper, docs Xevion 2024-10-24 04:03:28 -05:00
  • 77d8586772 add human-readable, apscheduler, bpython (dev) Xevion 2024-10-24 04:02:53 -05:00
  • d364239523 responses.py (pydantic models) Xevion 2024-10-24 04:02:30 -05:00
  • 2ae2b6af52 reformat: migrate.py Xevion 2024-10-24 04:02:18 -05:00
  • 98ef2d2aa6 Enable reloader for hypercorn (does nothing?), add repl command with bpython Xevion 2024-10-24 04:01:39 -05:00
  • a3d5bb4592 Fix improper column name scheme Xevion 2024-10-24 04:01:18 -05:00
  • cd959ffa48 migration: ipaddress_count Xevion 2024-10-23 18:34:35 -05:00
  • 110626048b Improve migration script with prompts, warnings, finish TODOs Xevion 2024-10-23 18:34:24 -05:00
  • 9d116442a4 Update initial migration to proper Xevion 2024-10-23 17:56:34 -05:00
  • 93b56cc7cf Improve migration handling, base model exclusion, initial migration creation/application Xevion 2024-10-23 17:56:19 -05:00
  • 7b7ac7c29e Add first migration, initial Xevion 2024-10-23 17:28:41 -05:00
  • d32b11987d Setup models, setup customized migration flow concept Xevion 2024-10-23 17:28:36 -05:00
  • f0b1e88305 Update hypercorn invocations for app.py Xevion 2024-10-23 17:27:47 -05:00
  • 945256e682 peewee, peewee-migrate, typeshed, cache modules Xevion 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 Xevion 2024-10-23 17:27:03 -05:00
  • e637d47efa Add health check path for backend Xevion 2024-10-16 01:29:47 -05:00
  • c7751097b2 document frontend setup, backend startup, TODOs Xevion 2024-10-16 01:28:20 -05:00
  • 30d9d96838 limit width, ensure body is max min height Xevion 2024-10-16 01:16:38 -05:00
  • 54268297df fix browser URL, prod is relative URL Xevion 2024-10-16 01:14:20 -05:00
  • d5b7f066b3 Fixup backend URL target on frontend, devmode fast refresh Xevion 2024-10-16 01:07:27 -05:00
  • 862a4fbc45 Reformat source files Xevion 2024-10-16 01:01:57 -05:00
  • 59d0440946 Fix railway startCommand for backend Xevion 2024-10-16 00:54:27 -05:00
  • 3a3c72ceb0 Tune nixpacks poetry version, stick to 1.8.4 Xevion 2024-10-16 00:50:14 -05:00
  • 4efba39103 move hypercorn startCommand to backend Xevion 2024-10-16 00:32:07 -05:00
  • 82b03f6211 .env loading in backend Xevion 2024-10-16 00:31:45 -05:00
  • 3b4dc2a7c2 Configure nixpacks to use Caddy Xevion 2024-10-16 00:31:35 -05:00
  • a72e2123bf add frontend work Xevion 2024-10-15 23:52:21 -05:00
  • d7aa949cad add CORS, return message, fallback IP to request.client.host Xevion 2024-10-15 23:52:16 -05:00
  • 7ff9d12143 add backend run.sh script Xevion 2024-10-15 23:51:51 -05:00