feat(deploy): nginx vhost serves :443 with a self-signed origin cert
All checks were successful
Deploy to Production / deploy (push) Successful in 49s
All checks were successful
Deploy to Production / deploy (push) Successful in 49s
Lets Cloudflare run in Full mode (encrypted Cloudflare<->origin) instead of Flexible (plaintext origin hop). Full (strict) is a later swap to a Cloudflare Origin Certificate. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,18 +1,24 @@
|
||||
# nginx vhost for buildmymcpserver.com — install on the host nginx:
|
||||
# scp this to /etc/nginx/sites-available/buildmymcpserver
|
||||
# cp this to /etc/nginx/sites-available/buildmymcpserver
|
||||
# ln -s /etc/nginx/sites-available/buildmymcpserver /etc/nginx/sites-enabled/
|
||||
# nginx -t && systemctl reload nginx
|
||||
#
|
||||
# TLS is terminated by Cloudflare (proxied DNS records). The origin serves
|
||||
# plain HTTP on :80 — same pattern as the other Cloudflare-fronted apps here.
|
||||
# Set the Cloudflare SSL/TLS mode to "Full" for this zone.
|
||||
# Serves both :80 and :443. The :443 listener uses a self-signed origin cert
|
||||
# (see DEPLOY.md) so Cloudflare can run in "Full" mode — TLS all the way to the
|
||||
# origin — instead of "Flexible" (plaintext origin hop). For "Full (strict)",
|
||||
# swap the self-signed cert for a Cloudflare Origin Certificate.
|
||||
|
||||
# --- Web app: buildmymcpserver.com ---
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name buildmymcpserver.com www.buildmymcpserver.com;
|
||||
|
||||
ssl_certificate /etc/ssl/buildmymcpserver/origin.crt;
|
||||
ssl_certificate_key /etc/ssl/buildmymcpserver/origin.key;
|
||||
|
||||
client_max_body_size 12M;
|
||||
|
||||
location / {
|
||||
@@ -33,8 +39,13 @@ server {
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name api.buildmymcpserver.com;
|
||||
|
||||
ssl_certificate /etc/ssl/buildmymcpserver/origin.crt;
|
||||
ssl_certificate_key /etc/ssl/buildmymcpserver/origin.key;
|
||||
|
||||
client_max_body_size 12M;
|
||||
|
||||
# Build-log WebSocket stream (/v1/builds/:id/stream) — needs the upgrade
|
||||
|
||||
Reference in New Issue
Block a user