Commit Graph

35 Commits

Author SHA1 Message Date
Scott Idem
a56213569a docs: expand .env.default comments for API and DB tuning settings
Updated AE_API_GUNICORN_WORKERS default from 2 → 4 based on stress
testing (nearly 2x throughput improvement confirmed). Added detailed
comments to Gunicorn, DB pool, and connection tuning settings explaining
what each parameter does, how they interact, and capacity planning math.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 18:55:28 -04:00
Scott Idem
8d1c27471f feat: expose DB pool_size and max_overflow as env vars
Documents AE_DB_POOL_SIZE and AE_DB_POOL_MAX_OVERFLOW in .env.default
with per-replica connection math comment for capacity planning.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 18:06:19 -04:00
Scott Idem
c136c2e50c chore(env): clean up .env.default and parameterize container names
- Remove 16 dead variables (OSIT_ENV, AE_API_ENV, AE_APP_ENV, AE_FLASK_APP_SRC,
  AE_DB_ROOT_PASSWORD, OSIT_WEB_HTTPS_PORT, 5x DOCKER_AE_*_EXTRA_HOST,
  CONTAINER_AE_API/APP/MARIADB/PMA)
- Add missing vars: AE_NETWORK_NAME, CONTAINER_DOZZLE, AE_DOZZLE_PORT
- Parameterize hardcoded container names in compose: CONTAINER_MARIADB,
  CONTAINER_PMA, CONTAINER_AE_OPS (all with :-default fallbacks)
- Fix AE_DB_EXTERNAL_PORT default: 3306 → 32768 (avoids host MariaDB conflict)
- Reorganize: AE_APP_GATEWAY_PORT moved next to AE_API_GATEWAY_PORT

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 19:02:46 -04:00
Scott Idem
dbfa9754d9 chore(deploy): add deploy.sh remote script, update Makefile
- deploy.sh: SSH-triggered deploy for prod and test environments on
  srv-nyx (linode.oneskyit.com). Pulls repos, builds ae_app container
  with correct BUILD_MODE, restarts ae_api.
- Makefile: rename build-ui → build-docker-dev/test/prod to match new
  naming convention; add deploy-remote-test and deploy-remote-prod targets
- .env.default: AE_APP_BUILD_MODE staging → dev (from prior session)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 17:18:52 -04:00
Scott Idem
bb437ce5cb chore(env): add .env.default template and track it in .gitignore
The Docker env project had no committed .env template — new contributors
had to reverse-engineer the required variables from the compose files.

Added .env.default with all required variables, secrets replaced with XXXX,
and comments explaining each section. Notable: AE_API_GUNICORN_TIMEOUT is
documented as 900 (needed for long ffmpeg video jobs like clip_video).

Updated .gitignore to whitelist .env.default via !.env.default.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 14:08:11 -04:00
Scott Idem
6ee6f24c00 Environment: Renamed .env.default to env.default for better visibility and updated it with new MariaDB and path parameters. 2026-01-12 16:50:48 -05:00
Scott Idem
97ddb96829 Minor text changes 2024-10-09 14:42:42 -04:00
Scott Idem
f2798551b2 Updates to make things more efficient. 2024-10-09 13:47:52 -04:00
Scott Idem
a8f62b8022 Minor change 2024-05-30 22:42:31 -04:00
Scott Idem
4c458f378a Finally got multiple server names working for Docker in nginx!!! 2024-05-30 22:40:32 -04:00
Scott Idem
f9b5186afc Trial and error fixes... 2024-04-24 16:04:36 -04:00
Scott Idem
1d279a2644 Minor update before trying live 2024-04-24 12:08:57 -04:00
Scott Idem
91eac68ee1 hosts... 2024-03-29 20:22:31 -04:00
Scott Idem
8a4434d0b8 Now with more colors! 2024-03-29 14:51:06 -04:00
Scott Idem
3e72c4299c Hopefully this works.... 2024-03-07 22:08:15 -05:00
Scott Idem
f1a36b2bc4 Working on using a cluster of API servers.... 2024-03-07 21:33:10 -05:00
Scott Idem
4d50418238 Making things easier to configure 2024-02-14 20:27:17 -05:00
Scott Idem
a4f578b400 General config clean up. 2023-10-19 19:04:16 -04:00
Scott Idem
b17420e584 General config clean up. 2023-10-19 18:58:11 -04:00
Scott Idem
8bf5b49552 Now with more .env vars! 2023-09-08 15:24:48 -04:00
Scott Idem
e8e7fc2383 More work on configs and env 2023-09-08 14:45:02 -04:00
Scott Idem
9262e9987e More work on configs and env 2023-09-08 14:23:08 -04:00
Scott Idem
be1bb21b7e Better configs with environment vars 2023-09-08 14:01:00 -04:00
Scott Idem
7679a62cf1 General improvements. 2023-07-12 15:39:45 -04:00
Scott Idem
630bd1a61e Now with variable key and max body size 2023-06-13 17:50:31 -04:00
Scott Idem
3a5024a2d0 Now with variable names for containers 2023-06-13 17:26:00 -04:00
Scott Idem
37c346efd7 Less configs to worry about 2023-06-13 17:11:35 -04:00
Scott Idem
5b65bd5a1f More clean up of Docker config related files 2023-06-13 16:09:42 -04:00
3e6c8db324 General clean up 2023-04-16 22:54:27 -04:00
Scott Idem
26c8b5121b The Docker Compose seems to be working correctly now... 2023-02-24 19:04:43 -05:00
Scott Idem
56fb54a38e Work on nginx and server names 2023-02-24 14:21:54 -05:00
Scott Idem
ea007cda13 Adding extra host ENV var for Docker 2023-02-23 17:49:48 -05:00
Scott Idem
ce3e57f87e Ready for testing on live server... 2023-02-23 16:22:17 -05:00
Scott Idem
e78b13602b Finalizing Docker Compose files and configuration options 2023-02-23 16:10:37 -05:00
Scott Idem
75298887d2 Finalizing Docker Compose files and configuration options 2023-02-23 15:52:00 -05:00