Add VPS deployment config for regpe.com (Nginx + deploy script)#3
Draft
bfricano wants to merge 1 commit into
Draft
Add VPS deployment config for regpe.com (Nginx + deploy script)#3bfricano wants to merge 1 commit into
bfricano wants to merge 1 commit into
Conversation
nginx.conf: Nginx server block for regpe.com with HTTPS redirect,
SSL (Let's Encrypt), security headers, PHP-FPM socket routing,
static asset caching, and SQLite data-dir lockdown
deploy.sh: one-command setup on Ubuntu 22.04/24.04
- install: installs Nginx, PHP 8.4-FPM, SQLite, Certbot, clones repo,
provisions SSL, sets permissions, configures log rotation
- update: git pull + reload — use for all subsequent deploys
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Co9XijEtZ2NA1q84rRCCLk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nginx.conf— production Nginx server block forregpe.com:data/directory locked down (403)deploy.sh— one-command setup for Ubuntu 22.04/24.04:install— installs Nginx, PHP 8.4-FPM + extensions, SQLite, Certbot; clones repo; provisions SSL cert; setsdata/permissions; configures OPcache and log rotationupdate—git pull+ reload PHP-FPM and Nginx; use for every subsequent deployUsage on the server
Test plan
regpe.comA record to server IP before runninginstallinstallcompletes without errors;https://regpe.comloads the platformcurl -I http://regpe.com)data/is not accessible via browser (curl https://regpe.com/data/returns 404)updatepulls latest and reloads without downtime🤖 Generated with Claude Code
https://claude.ai/code/session_01Co9XijEtZ2NA1q84rRCCLk
Generated by Claude Code