Compare commits

...

2 Commits

Author SHA1 Message Date
Jeff Emmett e06c24ea21 Add deployment scaffolding (Dockerfile, docker-compose, nginx)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 14:14:29 +01:00
Jeff Emmett 5a8782062d fix: correct newsletter API endpoint
Changed from /api/subscribe/subscribe to /subscribe to match
the updated newsletter-api routing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 00:53:31 +00:00
2 changed files with 22 additions and 2 deletions

View File

@ -3,7 +3,7 @@
import { useState } from "react"
import { Button } from "@/components/ui/button"
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/api/subscribe"
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/subscribe"
const LIST_UUID = "0c541da4-3f04-4e72-978a-5a328b43c995" // Alltornet list
export function NewsletterSignup() {
@ -19,7 +19,7 @@ export function NewsletterSignup() {
setStatus("loading")
try {
const response = await fetch(`${NEWSLETTER_API}/subscribe`, {
const response = await fetch(NEWSLETTER_API, {
method: "POST",
headers: {
"Content-Type": "application/json",

20
docker-compose.yml Normal file
View File

@ -0,0 +1,20 @@
services:
alltornet-prod:
build:
context: .
dockerfile: Dockerfile
image: alltornet-prod:latest
container_name: alltornet-prod
restart: unless-stopped
networks:
- traefik-public
labels:
- "traefik.enable=true"
- "traefik.http.routers.alltornet.rule=Host(`alltor.net`) || Host(`www.alltor.net`)"
- "traefik.http.routers.alltornet.entrypoints=web"
- "traefik.http.services.alltornet.loadbalancer.server.port=80"
- "traefik.docker.network=traefik-public"
networks:
traefik-public:
external: true