prod setup
Some checks failed
CI / Check Style (push) Has been cancelled
CI / Run Clippy (push) Has been cancelled
CI / Run Tests (push) Has been cancelled

This commit is contained in:
Priec
2026-06-29 19:58:37 +02:00
parent bfe9ffc5ad
commit 602d671996
4 changed files with 103 additions and 13 deletions

View File

@@ -52,6 +52,22 @@ listening on http://localhost:5150
You can check your [configuration](config/development.yaml) to pick either frontend setup or server-side rendered template, and activate the relevant configuration sections.
## Production Podman Deploy
Create the production environment file:
```sh
cp .env.production.example .env.production
```
Edit `.env.production` and set real secrets for `POSTGRES_PASSWORD`, `JWT_SECRET`, `OAUTH_PRIVATE_KEY`, and the OAuth client values. Then start the production stack:
```sh
make up
```
The production Podman stack runs Caddy, the Loco app, and Postgres. Caddy publishes ports `80` and `443`; the app port `5150` stays private on the container network. HTTP requests on port `80` are redirected to HTTPS on port `443`.
## Getting help