Commit Graph
22 Commits
Author SHA1 Message Date
elviraandClaude Opus 5.5 6d88d53882 Infra: Caddy instead of nginx (plain swap, TLS stays in front)
Caddy 2.11.7 built with xcaddy, with caddy-ratelimit pinned to commit
5625512f (for M3/F7 later; its only tag is years old). Prod bakes
public/ and the config into the image (target caddy); dev uses the
caddy-base stage with docker/caddy and public/ bind-mounted.

It's a 1:1 swap for the host's TLS proxy: plain HTTP on
127.0.0.1:${APP_PORT:-8090}, auto_https off, and
trusted_proxies private_ranges so the proxy's X-Forwarded-* headers
still reach Laravel (checked: https + forwarded host in redirects, as
before). Narrow that range once it's known where TLS ends.

Carried over from nginx:
- php_fastcgi to app:9000, 300s read timeout, try_files to index.php
- /build, /static, /packages and /storage (from the storage volume)
  with Cache-Control "public, max-age=31536000, immutable"
- /sitemap.xml from storage/app, max-age=3600, application/xml
- X-Frame-Options SAMEORIGIN + X-Content-Type-Options nosniff
- 100 MiB upload limit (413 above, as before)
- dotfiles denied except /.well-known/
- /stoic/ proxied to stoic:2727, prefix stripped, cookie paths
  rewritten to /stoic/
- access log to stdout, favicon/robots not logged

Changed on purpose:
- FastCGI page cache dropped (and X-Cache-Status with it). The static
  page cache comes later (P2). It also replayed the first visitor's
  Set-Cookie (session + XSRF) to other guests, since it ignored
  Set-Cookie and keyed on URL only.
- New: zstd/gzip compression for text responses (nginx had none).
- Security headers now on every response; prod nginx dropped them on
  PHP responses and on 4xx/5xx.
- A missing file under the static paths is a plain 404 instead of
  Laravel's page with a 404 status.
- No Via or CGI Status header; one Content-Type on the sitemap (nginx
  sent two).
- Dropped as unneeded: open_file_cache, fastcgi buffers/keepalive,
  `charset utf-8` (Caddy's MIME types carry it where it matters).

Stoic's dev config called the app at http://nginx/validate; it's now
http://caddy/validate. bootstrap/app.php and .env.example comments
updated. docker/nginx/ is removed.

Not in this repo, not changed: boboko-test and the boboko starter
still use nginx.

Deploy note: the service is renamed nginx -> caddy; Envoy's
`up -d --remove-orphans` removes the old nginx container. Expect a few
seconds without a listener on 8090 while it swaps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 01:01:13 +02:00
arvanitakis df29429257 Fix: Adding new production nginx config 2026-09-29 17:34:08 +03:00
arvanitakis f6bcd31bd8 FIx: Reverting back root for stoic 2026-09-29 16:50:01 +03:00
arvanitakis 77c9117556 Fix: Removing root privileges from stoic, creating and giving 777 to stoic folder 2026-09-29 16:42:59 +03:00
elvira 47f250d27f Merge branch 'cart-temp' 2026-09-29 16:12:20 +03:00
arvanitakis 70787ace44 Feat: Updating entrypoint and missing lunar translations! 2026-09-29 00:03:37 +03:00
arvanitakis 25021bdafb Fix: Correcting vector file name 2026-09-28 21:39:03 +03:00
arvanitakis c48d3b1756 Fix: Publishing assets on prod 2026-09-28 20:10:41 +03:00
arvanitakis b38e190714 Feat: Removing OTEL collector files and adding victoria logs 2026-09-28 19:42:26 +03:00
elvira aa051525a1 stoic multilingual 2026-09-28 18:17:33 +03:00
arvanitakis 4634e14924 Feat: Moving seeders to core, updating entrypoint to auto seed the validation and checkout translations 2026-09-28 13:43:44 +03:00
arvanitakis 8b362c9436 Feat: Correctly extracting boboko/core's js 2026-09-28 08:46:14 +03:00
arvanitakis b2207a622c Feat: Updating COntrollers to remove business logic moved to boboko/core 2026-09-03 11:47:38 +03:00
arvanitakis 5e2ec7a60a Feat: Entrypoint updates 2026-09-02 13:23:01 +03:00
arvanitakis ea6ebe435e Feature: Updating entrypoints, to support caching, migrations, etc 2026-09-01 12:43:19 +03:00
arvanitakis 74e554884f Feat: Updating Entrypoint to setup lunar meilisearch 2026-08-31 14:56:17 +03:00
arvanitakis 4387459aed Feat: Upgrading to Boboko 0.10.0 / Lunar 1.5 2026-08-31 14:25:22 +03:00
elvira 90e32e337d localization from boboko core and product service too 2026-08-26 18:28:16 +03:00
arvanitakis 092fab8740 Fix: Adding comments to entrypoint 2026-08-26 14:47:27 +03:00
arvanitakis 5ecad634e2 Hotfix: Updatin build, fixing vite error, creating separate entrypoints 2026-07-10 12:54:48 +03:00
arvanitakis a2caa43bc9 Feature: Syncing composer .env.example and docker-compose.dev.yml from starter 2026-07-09 01:09:44 +03:00
boboko cbad03bf8f Initial commit 2026-07-03 13:46:54 +00:00