Skip to content

Set up the infra needed for a VPS website and server.

Notifications You must be signed in to change notification settings

nutratech/vps-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

vps-infra

Infrastructure as Code (IaC) for the nutra.tk platform.

This repository handles the automated provisioning, security hardening, and configuration management for the project's Development (VPS16) and Production (VPS76) environments.

Stack

  • OS: Ubuntu 24.04 LTS
  • Web Server: Nginx Mainline (HTTP/3 + QUIC, TLS 1.3)
  • Security: UFW (TCP/UDP), Fail2Ban, SSH Hardening
  • Automation: Bash (Idempotent scripting) & GNU Make

Workflow

Provisioning

Bootstrap a fresh VPS instance using the setup script. This installs dependencies, configures the firewall, and sets up auto-renewal for SSL.

# Run as non-root user with sudo privileges
./setup.sh

Deployment

Configuration changes are managed locally and pushed to environments via Make/Rsync.

# Deploy to Dev (VPS16) - Immediate reload
make deploy-dev

# Deploy to Prod (VPS76) - Requires manual confirmation
make deploy-prod

Structure

.
├── configs/
│   ├── common/     # Shared snippets (mime.types, params)
│   ├── dev/        # Dev-specific configs (Relaxed caching)
│   └── prod/       # Prod-specific configs (HTTP/3, HSTS)
├── setup.sh        # Idempotent server provisioning
└── Makefile        # Deployment orchestrator

About

Set up the infra needed for a VPS website and server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published