Compare commits

...

3 Commits

Author SHA1 Message Date
Jeff Emmett 1d54633e9e Add missing project files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 14:20:02 +01:00
Jeff Emmett c2a8478f0e Add deployment scaffolding (Dockerfile, docker-compose, nginx)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 14:14:30 +01:00
Jeff Emmett ae4da9e0ed Add Open Graph and Twitter Card metadata for social sharing
- Add og-image.jpg (1200x630) for link previews
- Add metadataBase, openGraph, and twitter metadata to layout.tsx

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 22:11:53 +01:00
8 changed files with 165 additions and 1 deletions

27
.dockerignore Normal file
View File

@ -0,0 +1,27 @@
# Git
.git
.gitignore
# Development
node_modules
.next
.cache
# Documentation
README.md
CLAUDE.md
*.md
# IDE
.idea
.vscode
*.swp
# OS
.DS_Store
Thumbs.db
# Environment (keep .env.example)
.env
.env.local
.env*.local

27
.gitignore vendored Normal file
View File

@ -0,0 +1,27 @@
# Dependencies
node_modules/
.pnpm-store/
# Build outputs
.next/
out/
dist/
build/
# Environment
.env
.env.local
.env*.local
# IDE
.idea/
.vscode/
*.swp
*.swo
# OS
.DS_Store
Thumbs.db
# Claude Code local instructions (symlink)
CLAUDE.md

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:20-alpine AS builder
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@latest --activate
COPY package.json pnpm-lock.yaml* package-lock.json* ./
RUN if [ -f pnpm-lock.yaml ]; then pnpm install --frozen-lockfile; elif [ -f package-lock.json ]; then npm ci; else npm install; fi
COPY . .
RUN if [ -f pnpm-lock.yaml ]; then pnpm build; else npm run build; fi
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/out /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

View File

@ -7,9 +7,35 @@ import Link from "next/link"
const vt323 = VT323({ weight: "400", subsets: ["latin"], variable: "--font-vt323" })
export const metadata: Metadata = {
metadataBase: new URL("https://mytmux.life"),
title: "mytmux.life - Terminal Multiplexer Configurator",
description: "Architect your perfect terminal development environment.",
generator: 'v0.app'
generator: "v0.app",
icons: {
icon: "data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🖥️</text></svg>",
},
openGraph: {
type: "website",
locale: "en_US",
url: "https://mytmux.life",
title: "mytmux.life - Terminal Multiplexer Configurator",
description: "Architect your perfect terminal development environment.",
siteName: "mytmux.life",
images: [
{
url: "/og-image.jpg",
width: 1200,
height: 630,
alt: "mytmux.life - Terminal Multiplexer Configurator",
},
],
},
twitter: {
card: "summary_large_image",
title: "mytmux.life - Terminal Multiplexer Configurator",
description: "Architect your perfect terminal development environment.",
images: ["/og-image.jpg"],
},
}
export default function RootLayout({

15
backlog/config.yml Normal file
View File

@ -0,0 +1,15 @@
project_name: "mytmux.life-website"
default_status: "To Do"
statuses: ["To Do", "In Progress", "Done"]
labels: []
milestones: []
date_format: yyyy-mm-dd
max_column_width: 20
auto_open_browser: true
default_port: 6420
remote_operations: true
auto_commit: false
zero_padded_ids: 3
bypass_git_hooks: false
check_active_branches: true
active_branch_days: 60

17
docker-compose.yml Normal file
View File

@ -0,0 +1,17 @@
services:
mytmux:
build: .
image: mytmux-prod:latest
container_name: mytmux-prod
restart: always
networks:
- traefik-public
labels:
- "traefik.enable=true"
- "traefik.http.routers.mytmux.rule=Host(`mytmux.life`) || Host(`www.mytmux.life`)"
- "traefik.http.routers.mytmux.entrypoints=web"
- "traefik.http.services.mytmux.loadbalancer.server.port=80"
networks:
traefik-public:
external: true

39
nginx.conf Normal file
View File

@ -0,0 +1,39 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Enable gzip compression
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_proxied any;
gzip_types text/plain text/css text/xml text/javascript application/javascript application/json application/xml+rss;
# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
# Handle Next.js static export routes
location / {
# Try exact file, then .html extension, then directory, then fallback to index.html
try_files $uri $uri.html $uri/ /index.html;
}
# Cache static assets
location /_next/static/ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
# Cache other static files
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, max-age=31536000";
}
# Custom error pages
error_page 404 /404.html;
error_page 500 502 503 504 /500.html;
}

BIN
public/og-image.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB