gendesign/sshkey.txt
lekss361 e22aeb9b5a Docker: multi-stage backend, npm ci, healthcheck fix, same-origin API
- backend/Dockerfile: split builder/runner, runtime libs only, non-root app user, curl for healthcheck, --frozen via new uv.lock
- frontend/Dockerfile: npm ci instead of npm install (deterministic), USER node
- docker-compose.prod.yml: working backend healthcheck (curl now in image), redis healthcheck, drop dead NEXT_PUBLIC_API_BASE_URL env (Next.js bakes NEXT_PUBLIC_* at build time, runtime override is no-op)
- docker-compose.yml: same redis healthcheck, BACKEND_URL for next.config rewrites, drop uv from CMD (not in new image)
- Caddyfile: handle (not handle_path) so /api prefix is preserved into FastAPI router
- next.config.ts: rewrite /api/* and /health to BACKEND_URL in dev (no Caddy locally)
- frontend/src/lib/api.ts: empty default = same-origin relative URLs
- Makefile: drop uv run from migrate target
- Add backend/uv.lock and frontend/package-lock.json for reproducible builds

Verified: docker build succeeds for both, backend container starts, /health responds, curl healthcheck works inside image, container runs as non-root.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 10:47:35 +03:00

53 lines
1.5 KiB
Text

Your identification has been saved in C:\Users\user\.ssh\gendesign_deploy
Your public key has been saved in C:\Users\user\.ssh\gendesign_deploy.pub
The key fingerprint is:
SHA256:50HjJLdk9XaRDRjvKIB9LrRoux6KojXQZvgqLm7LEks gendesign-deploy
The key's randomart image is:
+--[ED25519 256]--+
| oo.oo|
| o ..o .o|
| . = O + .|
| o o & o + . |
|o + o S B . . |
|.E . . + o |
|.o+ o . |
|B+ o . o |
|@*o ..o |
+----[SHA256]-----+
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPGKuThuQMPdjxdA9FXHkUZUO+iyVbSMOxy3qFbOY7+K gendesign-deploy
mYsNNJf%6hpN
`gendesign' 12345 ssh gendesign
for github
Generating public/private ed25519 key pair.
Your identification has been saved in /home/gendesign/.ssh/github_deploy
Your public key has been saved in /home/gendesign/.ssh/github_deploy.pub
The key fingerprint is:
SHA256:W9Ioi7A/d+LxIghIOoF4rGurbEnIHuVjDtfF1Ki+C1o gendesign-server-deploy-key
The key's randomart image is:
+--[ED25519 256]--+
| o |
| o . |
|o. + |
|+.o. . o o |
|*++ o o S o |
|B= B + o + |
|o+OEo + . |
|o=+o+.+o. |
|=+. .*o+. |
+----[SHA256]-----+
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPYYAH7vPN/b0npfH1IrhADdE+SwJsmo8gJm84VauM4m gendesign-server-deploy-key
pg pass 2J2SBPMKuS998fiwhtQqDhMI
ssh -i $HOME\.ssh\gendesign_deploy gendesign@46.173.16.127
pat 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
echo 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| docker login ghcr.io -u lekss361 --password-stdin