From d066d8e4146321fd3992c114acd412af08202175 Mon Sep 17 00:00:00 2001 From: Your Name <119736744+aborayan2022@users.noreply.github.com> Date: Sun, 5 Apr 2026 19:47:29 +0200 Subject: [PATCH] fix: Prevent nginx crash before git.dociva.io cert exists --- nginx/nginx.prod.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.prod.conf b/nginx/nginx.prod.conf index c0e77d6..ea9240f 100644 --- a/nginx/nginx.prod.conf +++ b/nginx/nginx.prod.conf @@ -135,8 +135,10 @@ server { http2 on; server_name git.dociva.io; - ssl_certificate /etc/letsencrypt/live/git.dociva.io/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/git.dociva.io/privkey.pem; + # Temporary fallback so nginx can start before git.dociva.io certificate is issued. + # After DNS is set and certbot runs, switch these back to /live/git.dociva.io/... + ssl_certificate /etc/letsencrypt/live/dociva.io/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/dociva.io/privkey.pem; ssl_protocols TLSv1.2 TLSv1.3; client_max_body_size 100M;