Private
Public Access
1
0

fix: pkg: the og tags did not have proper http schema - they should have https #4

This commit is contained in:
2026-04-15 14:33:53 +02:00
parent f442942faf
commit 8780800dff
6 changed files with 27 additions and 4 deletions

View File

@@ -151,6 +151,7 @@ services:
app:
environment:
MAILER_DSN: smtp://mail:1025?verify_peer=0
TRUSTED_PROXIES: "0.0.0.0/0"
mail:
image: mailhog/mailhog:latest
ports:
@@ -233,8 +234,13 @@ MERCURE_SUBSCRIBER_JWT="<generated by make mercure-jwt>"
APP_PUBLIC_HOSTNAME=mineseeker.hu
WEBAUTHN_RP_ID=mineseeker.hu
WEBAUTHN_ORIGIN=https://mineseeker.hu
```
# OG Tags & Social Media Sharing (IMPORTANT for Docker deployments)
# TRUSTED_PROXIES: IP address (or range) of your reverse proxy (Caddy/Nginx)
# This ensures OG image tags use HTTPS URLs instead of HTTP
TRUSTED_PROXIES="172.18.0.0/16"
TRUSTED_HOSTS="mineseeker.hu,www.mineseeker.hu"
```
### Production server: one-time setup
The server needs Docker, Git, and a self-hosted `act_runner` registered against the Gitea repository. Bun and Composer run inside the multi-stage Dockerfile, so they are not needed on the server.
@@ -254,7 +260,7 @@ make mercure-jwt
Copy the three printed values into the `PROD_ENV_FILE` secret.
#### 5. First deploy
#### 3. First deploy
Trigger it by pushing the first tag:
@@ -265,7 +271,7 @@ git push origin v2026.01
This writes `.env`, builds the Docker image, starts all services, runs migrations, and initialises the MinIO buckets automatically via `minio_init`.
#### 6. Verify
#### 4. Verify
```bash
docker compose ps # all services should be healthy/running