From 74b9eec1228417094cdee94ae2e73a5f119180ac Mon Sep 17 00:00:00 2001 From: bain Date: Mon, 4 Nov 2024 22:27:40 +0100 Subject: [PATCH] remove unnecessary files --- build.sh | 20 ------------------- ncc/templates/__init__.py | 0 ncc/templates/nginx-minimal.conf | 11 ----------- ncc/templates/nginx-site.conf | 34 -------------------------------- ncc/templates/ssl.conf | 4 ---- 5 files changed, 69 deletions(-) delete mode 100755 build.sh delete mode 100644 ncc/templates/__init__.py delete mode 100644 ncc/templates/nginx-minimal.conf delete mode 100644 ncc/templates/nginx-site.conf delete mode 100644 ncc/templates/ssl.conf diff --git a/build.sh b/build.sh deleted file mode 100755 index eb09a56..0000000 --- a/build.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -DIR=$(mktemp -d) -pip install -r requirements.txt --target="$DIR" - -cp -r nginx_configurator "$DIR" -cp -r config "$DIR" - -#python3 -m zipapp -p "/bin/python3" -m "nginx_configurator.main:cli" -o ncc "$DIR" - -# create entrypoint -cat > "$DIR/ncc" <; # AUTOSSL > {{ id }} - include ssl/{{ id }}.conf; - - return 200; -} diff --git a/ncc/templates/nginx-site.conf b/ncc/templates/nginx-site.conf deleted file mode 100644 index a148ebe..0000000 --- a/ncc/templates/nginx-site.conf +++ /dev/null @@ -1,34 +0,0 @@ -# ID: {{ id }} -# Service configured by ncc - -upstream up_{{ id }} { -{%- for upstream in upstreams %} - server {{ upstream }}:{{ port }}; -{%- endfor %} -} - -server { - server_name{% for domain in domains %} {{ domain }}{% endfor %}; # AUTOSSL > {{ id }} - - listen 443 ssl http2; - listen [::]:443 ssl http2; - - # ssl - include /etc/nginx/ssl/{{ id }}.conf; - - # logging - include include/logging-nolog.conf; # Change to "logging-debug" if needed - - # gzip compression - include include/gzip.conf; - - # security headers - include include/security-headers.conf; - - # reverse proxy - location / { - proxy_pass {{ proto }}up_{{ id }}; - include include/proxy-headers.conf; - } - -} diff --git a/ncc/templates/ssl.conf b/ncc/templates/ssl.conf deleted file mode 100644 index cf4920f..0000000 --- a/ncc/templates/ssl.conf +++ /dev/null @@ -1,4 +0,0 @@ -ssl_certificate /etc/autossl/certs/{{ alias }}/fullchain.pem; -ssl_certificate_key /etc/autossl/certs/{{ alias }}/privkey.pem; -include include/ssl_defaults.conf; -ssl_dhparam /etc/autossl/ssl-dhparams.pem;