mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 02:11:10 -05:00
feat: complete monorepo structure with frontend and shared resources
- Add complete backend/ directory with full Django application - Add frontend/ directory with Vite + TypeScript setup ready for Next.js - Add comprehensive shared/ directory with: - Complete documentation and memory-bank archives - Media files and avatars (letters, park/ride images) - Deployment scripts and automation tools - Shared types and utilities - Add architecture/ directory with migration guides - Configure pnpm workspace for monorepo development - Update .gitignore to exclude .django_tailwind_cli/ build artifacts - Preserve all historical documentation in shared/docs/memory-bank/ - Set up proper structure for full-stack development with shared resources
This commit is contained in:
62
shared/scripts/unraid/cloud-init-template.yaml
Normal file
62
shared/scripts/unraid/cloud-init-template.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
#cloud-config
|
||||
# Ubuntu autoinstall configuration
|
||||
autoinstall:
|
||||
version: 1
|
||||
locale: en_US.UTF-8
|
||||
keyboard:
|
||||
layout: us
|
||||
network:
|
||||
version: 2
|
||||
ethernets:
|
||||
ens3:
|
||||
dhcp4: true
|
||||
enp1s0:
|
||||
dhcp4: true
|
||||
eth0:
|
||||
dhcp4: true
|
||||
ssh:
|
||||
install-server: true
|
||||
authorized-keys:
|
||||
- {SSH_PUBLIC_KEY}
|
||||
allow-pw: false
|
||||
storage:
|
||||
layout:
|
||||
name: lvm
|
||||
identity:
|
||||
hostname: thrillwiki-vm
|
||||
username: ubuntu
|
||||
password: "$6$rounds=4096$salt$hash" # disabled - ssh key only
|
||||
packages:
|
||||
- openssh-server
|
||||
- curl
|
||||
- git
|
||||
- python3
|
||||
- python3-pip
|
||||
- python3-venv
|
||||
- build-essential
|
||||
- postgresql
|
||||
- postgresql-contrib
|
||||
- nginx
|
||||
- nodejs
|
||||
- npm
|
||||
- wget
|
||||
- ca-certificates
|
||||
- openssl
|
||||
- dnsutils
|
||||
- net-tools
|
||||
early-commands:
|
||||
- systemctl stop ssh
|
||||
late-commands:
|
||||
# Enable sudo for ubuntu user
|
||||
- echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/ubuntu
|
||||
# Install uv Python package manager
|
||||
- chroot /target su - ubuntu -c 'curl -LsSf https://astral.sh/uv/install.sh | sh || pip3 install uv'
|
||||
# Add uv to PATH
|
||||
- chroot /target su - ubuntu -c 'echo "export PATH=\$HOME/.cargo/bin:\$PATH" >> /home/ubuntu/.bashrc'
|
||||
# Clone ThrillWiki repository
|
||||
- chroot /target su - ubuntu -c 'cd /home/ubuntu && git clone {GITHUB_REPO} thrillwiki'
|
||||
# Setup systemd service for ThrillWiki
|
||||
- systemctl enable postgresql
|
||||
- systemctl enable nginx
|
||||
|
||||
shutdown: reboot
|
||||
Reference in New Issue
Block a user