include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
- http2 on;
- http3 on;
add_header Alt-Svc 'h3=":443"; ma=86400' always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
ssl_trusted_certificate /etc/ssl/private/ca-certs.pem;
http3 on;
# SSL Configuration
- ssl_certificate /etc/letsencrypt/live/earthyenergy.mooo.com/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/earthyenergy.mooo.com/privkey.pem; # managed by Certbot
+ ssl_certificate /etc/letsencrypt/live/nutra.tk/fullchain.pem; # managed by Certbot
+ ssl_certificate_key /etc/letsencrypt/live/nutra.tk/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
sudo cp "$GITWEB_CONF_SRC" /etc/gitweb.conf
fi
- # Deploy Gitweb frontend assets
- if [ -d "$REPO_ROOT/scripts/gitweb-simplefrontend" ]; then
+ # Deploy Gitweb frontend assets (Dev Only)
+ if [ "$ENV" == "dev" ] && [ -d "$REPO_ROOT/scripts/gitweb-simplefrontend" ]; then
echo "Generating services map..."
if [ -f "$REPO_ROOT/scripts/gen_services_map.py" ]; then
python3 "$REPO_ROOT/scripts/gen_services_map.py"
# Paths relative to repo root
REPO_ROOT = Path(__file__).parent.parent
-NGINX_CONF = REPO_ROOT / "etc/nginx/conf.d/git-http.conf"
+NGINX_CONF = REPO_ROOT / "etc/nginx/conf.d/git-http.dev.conf"
OUTPUT_HTML = REPO_ROOT / "scripts/gitweb-simplefrontend/services.html"
HTML_TEMPLATE = """<!DOCTYPE html>